:root {
  --ink: #0f1716;
  --muted: #64706e;
  --paper: #f3f6f6;
  --surface: #ffffff;
  --line: #dbe3e1;
  --teal: #049987;
  --teal-dark: #053d38;
  --blue: #2f73d9;
  --gold: #d9a441;
  --warm: #edf4f2;
  --shadow: 0 22px 70px rgba(8, 20, 19, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f3f6f6 0%, #ffffff 42%, #edf4f2 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

body.ha-only {
  background: #000;
}

body.ha-only .site-header,
body.ha-only .hero-copy,
body.ha-only .demo-caption,
body.ha-only .demo-explainer,
body.ha-only .problem-band,
body.ha-only .section,
body.ha-only .offer-band,
body.ha-only .footer {
  display: none !important;
}

body.ha-only .hero {
  display: block;
  min-height: 100svh;
  padding: 0;
}

body.ha-only .hero-media,
body.ha-only .tablet,
body.ha-only .dashboard-screen {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.ha-only .tablet {
  padding: 0;
  background: transparent;
}

body.ha-only .tablet::before,
body.ha-only .tablet-camera {
  display: none;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(245, 247, 248, 0.92);
  border-bottom: 1px solid rgba(217, 222, 215, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #123a36);
  border-radius: 8px;
  font-size: 22px;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal);
}

.nav-cta {
  min-height: 40px;
  padding: 9px 14px;
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(4, 153, 135, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 56px) clamp(38px, 5vw, 66px);
  color: #effaf7;
  background:
    linear-gradient(115deg, rgba(5, 17, 16, 0.94), rgba(5, 39, 36, 0.88) 52%, rgba(10, 17, 20, 0.76)),
    url("assets/hero-smart-home.png") center / cover no-repeat;
  isolation: isolate;
}

.hero-copy {
  max-width: 700px;
}

.hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(22px, 4vw, 44px);
  padding: 8px 12px 8px 8px;
  color: #f5fffc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.hero-brandline .brand-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #05b69f, #2f73d9);
}

.eyebrow {
  margin: 0 0 12px;
  color: #77e6d5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(239, 250, 247, 0.78);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
}

.button.primary:hover {
  background: linear-gradient(135deg, #08b99f, #3c7fe2);
}

.button.secondary {
  color: #f5fffc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.button.light {
  background: #fff;
  color: var(--teal-dark);
}

.site-header .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
  box-shadow: 0 10px 24px rgba(4, 153, 135, 0.18);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  color: rgba(239, 250, 247, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.hero-proof i {
  color: #77e6d5;
  font-size: 17px;
}

.quick-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.quick-points div {
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.quick-points dt {
  font-size: 20px;
  font-weight: 900;
}

.quick-points dd {
  margin: 2px 0 0;
  color: rgba(239, 250, 247, 0.66);
  font-size: 14px;
}

.hero-media {
  position: relative;
}

.tablet {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: 18px;
  background:
    linear-gradient(#121918, #0a1110) padding-box,
    linear-gradient(135deg, rgba(119, 230, 213, 0.7), rgba(47, 115, 217, 0.35), rgba(217, 164, 65, 0.35)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.tablet::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -1;
  background: url("assets/hero-smart-home.png") center / cover;
  border-radius: 8px;
  opacity: 0.2;
  filter: saturate(0.86);
}

.tablet-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #31413e;
  border-radius: 50%;
  transform: translateX(-50%);
}

.dashboard-screen {
  min-height: 560px;
  padding: 0;
  color: #ecf7f4;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.48)),
    center / cover no-repeat url("assets/ha-background.jpg"),
    linear-gradient(135deg, rgba(6, 16, 23, 0.96), rgba(18, 41, 50, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  font-family: Consolas, "Courier New", monospace;
}

body:not(.ha-only) .dashboard-screen {
  height: min(78vh, 760px);
  min-height: 620px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

body:not(.ha-only) .dashboard-screen::-webkit-scrollbar {
  display: none;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ha-layout {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 14px;
}

.ha-sidebar {
  display: grid;
  align-content: start;
  gap: 9px;
}

.room-tab {
  min-height: 42px;
  padding: 9px 10px;
  color: rgba(236, 247, 244, 0.68);
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.room-tab.active,
.room-tab:hover {
  color: #10211f;
  background: #b6f1df;
}

.ha-main {
  min-width: 0;
}

.dashboard-topbar p,
.dashboard-topbar strong {
  display: block;
  margin: 0;
}

.dashboard-topbar p {
  color: rgba(236, 247, 244, 0.62);
  font-size: 13px;
}

.dashboard-topbar strong {
  font-size: 26px;
  line-height: 1.1;
}

.dashboard-topbar span {
  padding: 7px 10px;
  color: #0f2925;
  background: #b6f1df;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.status-pill,
.dash-tile,
.modal-close {
  font: inherit;
}

.status-pill {
  min-height: 40px;
  color: rgba(236, 247, 244, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
}

.status-pill.active,
.status-pill:hover {
  color: #10211f;
  background: #d7a84d;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 12px;
}

.dash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px;
  color: #f2fbf9;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.dash-card:hover,
.dash-card:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(215, 168, 77, 0.7);
  transform: translateY(-2px);
}

.climate-card,
.energy-card {
  grid-column: span 3;
}

.lights-card,
.security-card,
.water-card,
.scenes-card {
  grid-column: span 2;
}

.lights-card {
  background: linear-gradient(135deg, rgba(215, 168, 77, 0.95), rgba(15, 118, 110, 0.72));
}

.card-kicker {
  color: rgba(242, 251, 249, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dash-card strong {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1.12;
}

.subvalue {
  position: relative;
  z-index: 1;
  color: rgba(242, 251, 249, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.thermo-ring {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: #d7a84d;
  border: 9px solid rgba(215, 168, 77, 0.34);
  border-top-color: #d7a84d;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 900;
}

.mini-switch {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.mini-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 22px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}

.bar-chart {
  position: absolute;
  right: 15px;
  bottom: 16px;
  display: flex;
  align-items: end;
  gap: 5px;
  width: 88px;
  height: 58px;
}

.bar-chart i {
  flex: 1;
  background: linear-gradient(#d7a84d, #0f766e);
  border-radius: 4px 4px 0 0;
}

.ha-shell {
  width: min(560px, 100%);
  margin-inline: auto;
}

.ha-mobile-top {
  display: grid;
  grid-template-columns: 42px 42px 42px 42px 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px 0;
  color: rgba(245, 247, 251, 0.82);
  background: #1b1b1b;
}

.ha-top-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: rgba(245, 247, 251, 0.82);
  font-size: 26px;
}

.ha-top-icon.active {
  position: relative;
  color: #f5f7fb;
}

.ha-top-icon.active::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: -10px;
  left: 7px;
  height: 2px;
  background: #f5f7fb;
  border-radius: 999px;
}

.ha-top-icon.right {
  grid-column: 7;
}

.ha-chip-row {
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-height: 142px;
  padding: 0 10px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  contain: paint;
}

.ha-chip-row::-webkit-scrollbar {
  display: none;
}

.ha-badge-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.ha-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  min-width: 48px;
  max-width: 48px;
  padding: 0;
  color: rgba(245, 247, 251, 0.88);
  background: rgba(20, 28, 38, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: inherit;
  font-family: monospace;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  cursor: pointer;
}

.ha-badge.icon-only {
  width: 48px;
  padding: 0;
  border-radius: 16px;
}

.ha-badge i {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  font-size: 21px;
  line-height: 1;
}

.ha-badge span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ha-badge[data-badge="lights"] {
  min-width: 72px;
  max-width: 72px;
  gap: 7px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.ha-badge[data-badge="tv"] {
  min-width: 98px;
  max-width: 98px;
  padding: 0 12px;
}

.ha-badge[data-badge="weather"] {
  min-width: 178px;
  max-width: 178px;
  padding: 0 12px;
}

.ha-badge[data-badge="projector"] {
  min-width: 156px;
  max-width: 156px;
  padding: 0 12px;
  text-overflow: clip;
}

.ha-badge[data-badge="time"] {
  min-width: 118px;
  max-width: 118px;
  padding: 0 12px;
  font-size: 15px;
}

.ha-badge[data-badge="lock"] {
  min-width: 88px;
  max-width: 88px;
  gap: 7px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.ha-badge[data-badge="gate"],
.ha-badge[data-badge="walk"],
.ha-badge[data-badge="cameras"] {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
  border-radius: 18px;
}

.ha-badge[data-badge="gate"] i,
.ha-badge[data-badge="walk"] i,
.ha-badge[data-badge="cameras"] i {
  width: 23px;
  height: 23px;
  font-size: 23px;
}

.ha-badge.on,
.ha-badge.active {
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.2);
  border-color: rgba(255, 215, 80, 0.45);
}

.ha-badge.pulse {
  transform: scale(0.96);
}

.ha-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 0 11px 11px;
}

.ha-room-card,
.ha-trash-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font: inherit;
}

.ha-room-card:focus,
.ha-trash-card:focus,
.ha-popup-tile:focus,
.garden-temp-button:focus,
.modal-close:focus {
  outline: none;
}

.ha-room-card {
  display: grid;
  grid-template-rows: 44px 1fr;
  place-items: center;
  min-height: 122px;
  padding: 18px 9px 14px;
  color: #d9e2ea;
  background: rgba(115, 162, 177, 0.58);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.ha-room-card span:last-child {
  max-width: 100%;
  color: inherit;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
}

.ha-room-card:hover,
.ha-room-card:focus-visible {
  border-color: rgba(255, 215, 80, 0.45);
  transform: translateY(-1px);
}

.ha-room-card.on {
  color: #ffcc00;
  background: rgba(121, 151, 104, 0.72);
  border-color: rgba(255, 215, 80, 0.45);
}

.ha-room-card.worx-card {
  grid-template-rows: 44px auto auto;
  color: #eff7ef;
  background: rgba(40, 139, 114, 0.7);
  border-color: rgba(82, 211, 126, 0.35);
}

.ha-room-card.warn {
  color: #ffb86b;
}

.ha-room-card.spotify {
  color: #d9e2ea;
}

.ha-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 40px;
  line-height: 1;
}

.ha-room-card .mdi::before,
.ha-top-icon.mdi::before,
.ha-round-chip.mdi::before {
  line-height: 1;
}

.spotify .ha-icon {
  font-size: 42px;
}

.worx-mark {
  color: #38bf60;
  font-size: 44px;
}

.worx-card small {
  margin-top: 5px;
  color: #f5f7fb;
  font-size: 18px;
}

.ha-trash-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 14px;
  width: 100%;
  min-height: 178px;
  margin: 0 11px 12px;
  width: calc(100% - 22px);
  padding: 14px 20px 16px;
  color: #f5f7fb;
  text-align: center;
  background: linear-gradient(rgba(110, 160, 178, 0.58), rgba(20, 50, 80, 0.58));
  border-radius: 18px;
}

.ha-trash-card > strong {
  font-size: 30px;
  line-height: 1;
}

.trash-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trash-dashboard span {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.trash-dashboard i {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  font-size: 34px;
  line-height: 1;
}

.trash-dashboard em {
  color: #d9e2ea;
  font-size: 19px;
  font-style: normal;
  font-weight: 700;
}

.trash-dashboard b {
  color: #d9e2ea;
  font-size: 29px;
  line-height: 1;
}

.trash-dashboard span:nth-child(2) b {
  color: #ffcc00;
}

.trash-dashboard span:nth-child(3) b {
  color: #58b9ff;
}

.trash-dashboard span:nth-child(4) b {
  color: #b87535;
}

.bin-mix {
  color: #101010;
}

.bin-plastic {
  color: #ffcf32;
}

.bin-paper {
  color: #45a9ff;
}

.bin-bio {
  color: #9a642e;
}

.ha-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.section-grid {
  grid-column: 1 / -1;
}

.section-grid.cols-1 {
  grid-template-columns: 1fr;
}

.section-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-grid.stack-grid {
  align-items: start;
}

.ha-popup-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ha-popup-stack .ha-popup-tile {
  grid-template-columns: 1fr;
  grid-template-areas: "icon" "title" "value";
  justify-items: center;
  min-height: 86px;
  padding: 10px 6px;
  text-align: center;
}

.ha-popup-stack .ha-popup-tile i {
  font-size: 30px;
}

.ha-popup-stack .ha-popup-tile strong {
  font-size: 14px;
  line-height: 1.08;
}

.ha-popup-stack .ha-popup-tile span {
  margin-top: 2px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ha-popup-tile.trash-mix i {
  color: #101010;
}

.ha-popup-tile.trash-plastic i {
  color: #ffcf32;
}

.ha-popup-tile.trash-paper i {
  color: #45a9ff;
}

.ha-popup-tile.trash-bio i {
  color: #b87535;
}

.ha-popup-tile.trash-date i {
  color: #9fb6c9;
}

.spotify-popup {
  display: grid;
  gap: 12px;
}

.spotify-hero,
.spotify-now,
.spotify-playlist-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.spotify-hero {
  min-height: 112px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.24), rgba(58, 122, 166, 0.18));
  border-color: rgba(30, 215, 96, 0.35);
  border-radius: 22px;
}

.spotify-hero i {
  color: #1ed760;
  font-size: 54px;
}

.spotify-hero strong {
  display: block;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 820;
  line-height: 1;
}

.spotify-hero span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.2;
}

.spotify-now {
  min-height: 82px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}

.spotify-now i {
  color: #1ed760;
  font-size: 36px;
}

.spotify-now strong,
.spotify-now span {
  display: block;
  overflow-wrap: anywhere;
}

.spotify-now strong {
  color: #fff;
  font-size: 18px;
  font-weight: 760;
}

.spotify-now span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.spotify-device-grid .ha-popup-tile,
.spotify-control-grid .ha-popup-tile {
  min-height: 82px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.spotify-device-grid .ha-popup-tile.active {
  background: rgba(30, 215, 96, 0.22);
  border-color: rgba(30, 215, 96, 0.42);
}

.spotify-device-grid .ha-popup-tile.active i,
.spotify-control.play i,
.spotify-control.sync i {
  color: #1ed760;
}

.spotify-control.pause i {
  color: #ffcc00;
}

.spotify-control.next i {
  color: #45a9ff;
}

.spotify-control.volume i {
  color: #cfd6df;
}

.spotify-playlist-select {
  position: relative;
}

.spotify-playlist-row {
  grid-template-columns: 40px 1fr 28px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.spotify-playlist-row i:first-child {
  color: #1ed760;
  font-size: 30px;
}

.spotify-playlist-row i:last-child {
  color: rgba(245, 247, 251, 0.74);
  font-size: 24px;
}

.spotify-playlist-row strong,
.spotify-playlist-row span {
  display: block;
}

.spotify-playlist-row strong {
  font-size: 15px;
  font-weight: 760;
}

.spotify-playlist-row span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.spotify-playlist-row[aria-expanded="true"] {
  border-color: rgba(30, 215, 96, 0.38);
  background: rgba(30, 215, 96, 0.12);
}

.spotify-playlist-row[aria-expanded="true"] .playlist-chevron {
  transform: rotate(180deg);
}

.playlist-chevron {
  transition: transform 0.18s ease;
}

.spotify-playlist-menu {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(8, 18, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.spotify-playlist-menu[hidden] {
  display: none;
}

.spotify-playlist-menu button {
  min-height: 42px;
  padding: 8px 12px;
  color: rgba(245, 247, 251, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.spotify-playlist-menu button.active {
  color: #fff;
  background: rgba(30, 215, 96, 0.2);
  border-color: rgba(30, 215, 96, 0.4);
}

.badge-camera-popup {
  display: grid;
  gap: 10px;
}

.badge-camera-main,
.badge-camera-ptz {
  position: relative;
  overflow: hidden;
  background: #000 url("assets/garden-camera-reference.jpg") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.badge-camera-main {
  height: 30vh;
  min-height: 190px;
  border-radius: 18px;
}

.badge-camera-ptz {
  height: 42vh;
  min-height: 260px;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.camera-video-frame {
  position: relative;
  overflow: hidden;
  background: #000 url("assets/garden-camera-reference.jpg") center / cover no-repeat;
}

.camera-loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.08) brightness(0.78);
}

.camera-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.camera-live-label,
.camera-ai-chip,
.camera-video-frame small,
.camera-video-frame b {
  position: absolute;
  z-index: 3;
  color: rgba(245, 247, 251, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.camera-live-label {
  top: 12px;
  left: 14px;
  color: #ff4f4f;
  font-size: 12px;
  font-weight: 900;
}

.camera-live-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #ff3434;
  border-radius: 50%;
  animation: rec-blink 1.2s steps(2, end) infinite;
}

.camera-ai-chip {
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(64, 196, 255, 0.54);
  border-radius: 999px;
  background: rgba(4, 14, 22, 0.68);
  color: rgba(226, 246, 255, 0.96);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.camera-ai-box {
  position: absolute;
  z-index: 3;
  border: 2px solid rgba(64, 196, 255, 0.95);
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) left top / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 18px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 18px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 18px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 18px no-repeat;
  color: rgba(64, 196, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(5, 16, 26, 0.64), 0 0 18px rgba(64, 196, 255, 0.24);
  pointer-events: none;
  will-change: left, top, width, height, transform;
}

.camera-ai-box.person {
  left: 34%;
  top: 24%;
  width: 17%;
  height: 48%;
  animation: camera-track-person 5.8s linear infinite;
}

.camera-ai-box.vehicle {
  left: 20%;
  top: 51%;
  width: 36%;
  height: 25%;
  color: rgba(255, 210, 46, 0.96);
  border-color: rgba(255, 210, 46, 0.96);
  box-shadow: 0 0 0 1px rgba(5, 16, 26, 0.64), 0 0 22px rgba(255, 210, 46, 0.3);
  animation: camera-track-vehicle 6.4s linear infinite;
}

.camera-ai-box em {
  position: absolute;
  left: -2px;
  top: -25px;
  min-width: 78px;
  padding: 3px 7px;
  border-radius: 7px 7px 7px 0;
  background: rgba(64, 196, 255, 0.92);
  color: rgba(2, 11, 17, 0.96);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.camera-ai-box.vehicle em {
  background: rgba(255, 210, 46, 0.94);
}

.camera-video-frame small {
  left: 14px;
  bottom: 12px;
  color: rgba(245, 247, 251, 0.72);
  font-size: 12px;
}

.camera-video-frame b {
  right: 14px;
  bottom: 12px;
  font-size: 12px;
}

.camera-video-frame b::before {
  content: "20:54:18";
}

.badge-camera-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.badge-camera-buttons button {
  display: grid;
  place-items: center;
  height: 48px;
  min-height: 48px;
  color: #c9ecff;
  background: rgba(34, 82, 132, 0.88);
  border: 1px solid rgba(130, 205, 255, 0.45);
  border-right: 0;
  border-radius: 0;
  font-size: 26px;
}

.badge-camera-buttons button:last-child {
  border-right: 1px solid rgba(130, 205, 255, 0.45);
}

.ha-summary-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 14px 18px;
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: none;
}

.ha-summary-card.active {
  background: rgba(255, 204, 0, 0.18);
  border-color: rgba(255, 204, 0, 0.35);
}

.ha-summary-card i {
  display: grid;
  place-items: center;
  color: #cfd6df;
  font-size: 48px;
}

.ha-summary-card.active i {
  color: #ffcc00;
}

.ha-summary-card strong,
.ha-summary-card span {
  display: block;
}

.ha-summary-card strong {
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
}

.ha-summary-card span {
  margin-top: 5px;
  color: rgba(210, 220, 230, 0.92);
  font-size: 15px;
  line-height: 1.24;
}

.ha-camera-block {
  grid-column: 1 / -1;
  height: min(58vh, 560px);
  min-height: 390px;
  overflow: hidden;
  background: #000 url("assets/garden-camera-reference.jpg") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
}

.ha-popup-tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "icon title" "icon value";
  column-gap: 10px;
  align-content: center;
  min-height: 104px;
  padding: 12px;
  color: rgba(245, 247, 251, 0.86);
  background: rgba(10, 22, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  text-align: left;
  font: inherit;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.section-grid.cols-3 .ha-popup-tile,
.section-grid.cols-4 .ha-popup-tile {
  grid-template-columns: 1fr;
  grid-template-areas: "icon" "title" "value";
  justify-items: center;
  min-height: 82px;
  padding: 10px 8px;
  text-align: center;
}

.section-grid.cols-3 .ha-popup-tile i,
.section-grid.cols-4 .ha-popup-tile i {
  font-size: 30px;
}

.section-grid.cols-3 .ha-popup-tile strong,
.section-grid.cols-4 .ha-popup-tile strong {
  font-size: 14px;
}

.section-grid.cols-3 .ha-popup-tile span,
.section-grid.cols-4 .ha-popup-tile span {
  margin-top: 2px;
  font-size: 12px;
}

.section-grid .ha-popup-tile.compact {
  grid-template-columns: 44px 1fr;
  grid-template-areas: "icon title" "icon value";
  justify-items: start;
  min-height: 64px;
  padding: 8px 12px;
  text-align: left;
  border-radius: 16px;
}

.section-grid .ha-popup-tile.compact i {
  font-size: 34px;
}

.section-grid .ha-popup-tile.compact strong {
  font-size: 16px;
  line-height: 1.05;
}

.section-grid .ha-popup-tile.compact span {
  margin-top: 1px;
  font-size: 12px;
}

.ha-popup-tile:active {
  transform: scale(0.985);
}

.ha-popup-tile.active {
  background: rgba(255, 204, 0, 0.18);
  border-color: rgba(255, 204, 0, 0.42);
}

.ha-popup-tile.active i {
  color: #ffcc00;
}

.ha-popup-tile.wide {
  grid-column: 1 / -1;
  min-height: 138px;
}

.ha-popup-tile.light {
  grid-column: 1 / -1;
  min-height: 138px;
  padding: 12px;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon title"
    "icon value"
    "brightness brightness"
    "temperature temperature";
  row-gap: 8px;
  cursor: default;
  text-align: left;
}

.ha-popup-tile.light label {
  display: grid;
  gap: 5px;
  color: rgba(245, 247, 251, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.ha-popup-tile.light label:first-of-type {
  grid-area: brightness;
}

.ha-popup-tile.light label:last-of-type {
  grid-area: temperature;
}

.ha-popup-tile.light input {
  width: 100%;
  accent-color: #ffcc00;
}

.ha-cover-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 54px 1fr;
  grid-template-areas:
    "icon title"
    "icon value"
    "slider slider";
  gap: 8px 14px;
  min-height: 132px;
  padding: 16px;
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ha-light-control-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 46px 1fr 58px;
  grid-template-areas:
    "icon copy copy"
    "bar bar temp";
  gap: 10px 12px;
  min-height: 132px;
  padding: 16px;
  color: #f5f7fb;
  background: rgba(21, 31, 41, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
}

.ha-light-control-card.on {
  background: rgba(47, 45, 13, 0.88);
  border-color: rgba(255, 204, 0, 0.36);
}

.ha-light-control-card > i {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: rgba(245, 247, 251, 0.48);
  background: rgba(245, 247, 251, 0.08);
  border-radius: 999px;
  font-size: 32px;
}

.ha-light-control-card.on > i {
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.14);
}

.ha-light-control-card div {
  grid-area: copy;
  align-self: center;
}

.ha-light-control-card strong,
.ha-light-control-card span {
  display: block;
}

.ha-light-control-card strong {
  font-size: 20px;
  font-weight: 760;
  line-height: 1.1;
}

.ha-light-control-card span {
  margin-top: 4px;
  color: rgba(245, 247, 251, 0.82);
  font-size: 15px;
}

.ha-light-slider {
  grid-area: bar;
  align-self: center;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 13px;
  outline: none;
}

.ha-light-slider::-webkit-slider-runnable-track {
  height: 46px;
  border-radius: 13px;
  background: rgba(61, 76, 84, 0.56);
}

.ha-light-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: 12px;
  appearance: none;
  -webkit-appearance: none;
  background: #e8eef2;
  border: 0;
  border-radius: 999px;
}

.ha-light-control-card.on .ha-light-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #ffcc00 0 var(--brightness, 0%), rgba(245, 247, 251, 0.86) var(--brightness, 0%) 100%);
}

.ha-light-temp-button {
  grid-area: temp;
  align-self: center;
  display: grid;
  place-items: center;
  width: 52px;
  height: 46px;
  color: #f5f7fb;
  background: rgba(30, 42, 52, 0.88);
  border: 0;
  border-radius: 13px;
  font-size: 22px;
}

.ha-light-temp-button.active {
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.16);
}

.ha-cover-card i {
  grid-area: icon;
  align-self: center;
  justify-self: center;
  color: #cfd6df;
  font-size: 42px;
}

.ha-cover-card strong {
  grid-area: title;
  align-self: end;
  font-size: 20px;
  font-weight: 800;
}

.ha-cover-card span {
  grid-area: value;
  color: rgba(245, 247, 251, 0.72);
  font-size: 15px;
}

.cover-position-slider {
  grid-area: slider;
  width: 100%;
  accent-color: #6ea8dc;
}

.garden-popup-grid {
  gap: 12px;
}

.garden-camera-feed {
  position: relative;
  grid-column: 1 / -1;
  min-height: 198px;
  overflow: hidden;
  background: #000 url("assets/garden-camera-reference.jpg") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  box-shadow: none;
}

.garden-camera-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.garden-light-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 46px 1fr 58px;
  grid-template-areas:
    "icon copy copy"
    "bar bar temp";
  gap: 12px 12px;
  min-height: 184px;
  padding: 28px 30px 26px;
  color: #f5f7fb;
  background: rgba(21, 31, 41, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.garden-light-card.on {
  background: rgba(47, 45, 13, 0.92);
  border-color: rgba(255, 204, 0, 0.42);
}

.garden-light-card.on > i {
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.14);
}

.garden-light-card > i {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: rgba(245, 247, 251, 0.38);
  background: rgba(245, 247, 251, 0.08);
  border-radius: 999px;
  font-size: 32px;
}

.garden-light-copy {
  grid-area: copy;
  align-self: center;
}

.garden-light-copy strong,
.garden-light-copy span {
  display: block;
  line-height: 1.12;
}

.garden-light-copy strong {
  font-size: 21px;
  font-weight: 760;
}

.garden-light-copy span {
  margin-top: 5px;
  color: rgba(245, 247, 251, 0.92);
  font-size: 19px;
  font-weight: 500;
}

.garden-brightness-slider {
  grid-area: bar;
  align-self: center;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 13px;
  box-shadow: none;
  cursor: pointer;
  outline: none;
}

.garden-brightness-slider:focus {
  outline: none;
}

.garden-brightness-slider::-webkit-slider-runnable-track {
  height: 56px;
  border: 0;
  border-radius: 13px;
  background: rgba(61, 76, 84, 0.56);
}

.garden-brightness-slider::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: 16px;
  appearance: none;
  -webkit-appearance: none;
  background: #e8eef2;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.garden-brightness-slider::-moz-range-track {
  height: 56px;
  border: 0;
  border-radius: 13px;
  background: rgba(61, 76, 84, 0.56);
}

.garden-brightness-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #e8eef2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.garden-light-card.on .garden-brightness-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #ffcc00 0 var(--brightness, 0%), rgba(245, 247, 251, 0.86) var(--brightness, 0%) 100%);
}

.garden-light-card.on .garden-brightness-slider::-moz-range-track {
  background: linear-gradient(90deg, #ffcc00 0 var(--brightness, 0%), rgba(245, 247, 251, 0.86) var(--brightness, 0%) 100%);
}

.garden-temp-button {
  grid-area: temp;
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 58px;
  height: 56px;
  color: #f5f7fb;
  background: rgba(30, 42, 52, 0.88);
  border: 0;
  border-radius: 13px;
  font-size: 24px;
}

.garden-temp-button.active {
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.16);
}

.garden-popup-grid .ha-popup-tile:not(.danger) i {
  color: #1295e8;
}

.garden-popup-grid .ha-popup-tile {
  grid-template-columns: 1fr;
  grid-template-areas: "icon" "title" "value";
  justify-items: center;
  align-content: center;
  min-height: 150px;
  padding: 16px 10px 14px;
  text-align: center;
}

.garden-popup-grid .ha-popup-tile i {
  font-size: 42px;
}

.garden-popup-grid .ha-popup-tile strong {
  align-self: end;
  font-size: 20px;
  line-height: 1.08;
}

.garden-popup-grid .ha-popup-tile span {
  margin-top: 4px;
  font-size: 15px;
}

.garden-popup-grid .ha-popup-tile.active:not(.danger) {
  background: rgba(255, 204, 0, 0.13);
  border-color: rgba(255, 204, 0, 0.36);
}

.garden-popup-grid .ha-popup-tile.active:not(.danger) i {
  color: #ffcc00;
}

.garden-popup-grid .ha-popup-tile.danger {
  background: rgba(122, 28, 32, 0.92);
  border-color: rgba(255, 92, 92, 0.42);
}

.garden-popup-grid .ha-popup-tile.danger i {
  color: #ff4f4f;
}

.ha-popup-tile.media {
  position: relative;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  grid-template-areas: "icon" "title" "value";
  place-items: center;
  min-height: 235px;
  color: #f5f7fb;
  background: #02070b;
  border-radius: 20px;
  overflow: hidden;
}

.ha-popup-tile.media i {
  position: relative;
  z-index: 2;
  font-size: 54px;
  color: rgba(245, 247, 251, 0.9);
}

.ha-popup-tile.media strong {
  position: relative;
  z-index: 2;
  font-size: 24px;
}

.ha-popup-tile.media span {
  position: relative;
  z-index: 2;
}

.fake-camera-feed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.fake-camera-feed::before {
  content: none;
}

.fake-camera-feed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.28;
}

.fake-camera-feed em {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 3;
  color: #ff4f4f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.fake-camera-feed em::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #ff3434;
  border-radius: 50%;
  animation: rec-blink 1.2s steps(2, end) infinite;
}

.fake-camera-feed b {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  color: rgba(245, 247, 251, 0.86);
  font-size: 12px;
}

.fake-camera-feed b::before {
  content: "20:54:18";
}

.fake-camera-feed small {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  color: rgba(245, 247, 251, 0.72);
  font-size: 12px;
}

@keyframes camera-pan {
  from {
    transform: translateX(-10%) translateY(0);
  }
  to {
    transform: translateX(10%) translateY(-3%);
  }
}

@keyframes rec-blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes ai-detection-pulse {
  0%, 100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes camera-track-person {
  0% {
    left: 31%;
    top: 21%;
    width: 15%;
    height: 46%;
    opacity: 0.88;
    transform: scale(0.98);
  }
  18% {
    left: 34%;
    top: 23%;
    width: 16%;
    height: 48%;
    opacity: 1;
    transform: scale(1);
  }
  38% {
    left: 39%;
    top: 25%;
    width: 18%;
    height: 50%;
    opacity: 0.95;
    transform: scale(1.015);
  }
  62% {
    left: 43%;
    top: 27%;
    width: 17%;
    height: 48%;
    opacity: 1;
    transform: scale(1);
  }
  82% {
    left: 47%;
    top: 28%;
    width: 16%;
    height: 46%;
    opacity: 0.9;
    transform: scale(0.99);
  }
  100% {
    left: 50%;
    top: 29%;
    width: 15%;
    height: 44%;
    opacity: 0.86;
    transform: scale(0.98);
  }
}

@keyframes camera-track-vehicle {
  0% {
    left: 13%;
    top: 54%;
    width: 30%;
    height: 22%;
    opacity: 0.88;
    transform: scale(0.98);
  }
  18% {
    left: 19%;
    top: 52%;
    width: 35%;
    height: 24%;
    opacity: 1;
    transform: scale(1);
  }
  40% {
    left: 28%;
    top: 50%;
    width: 40%;
    height: 27%;
    opacity: 0.96;
    transform: scale(1.012);
  }
  64% {
    left: 38%;
    top: 48%;
    width: 44%;
    height: 29%;
    opacity: 1;
    transform: scale(1.02);
  }
  84% {
    left: 47%;
    top: 47%;
    width: 38%;
    height: 28%;
    opacity: 0.94;
    transform: scale(1);
  }
  100% {
    left: 55%;
    top: 47%;
    width: 31%;
    height: 26%;
    opacity: 0.86;
    transform: scale(0.99);
  }
}

.ha-popup-tile i {
  grid-area: icon;
  align-self: center;
  justify-self: center;
  color: #ffcc00;
  font-size: 34px;
  line-height: 1;
}

.ha-popup-tile strong,
.ha-popup-tile span {
  display: block;
}

.ha-popup-tile strong {
  grid-area: title;
  align-self: end;
  font-size: 20px;
  line-height: 1.1;
}

.ha-popup-tile span {
  grid-area: value;
  align-self: start;
  margin-top: 6px;
  color: rgba(245, 247, 251, 0.58);
  font-size: 14px;
}

.demo-caption {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.demo-explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding: 0 clamp(18px, 4vw, 56px) clamp(56px, 7vw, 92px);
}

.demo-explainer p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: -26px clamp(18px, 4vw, 56px) clamp(52px, 6vw, 84px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(8, 20, 19, 0.13);
  backdrop-filter: blur(18px);
}

.trust-strip div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 3px 14px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.trust-strip i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
  border-radius: 8px;
  font-size: 25px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.demo-modal {
  width: min(760px, 96vw);
  max-width: 96vw;
  height: min(760px, 94vh);
  max-height: 94vh;
  padding: 0;
  color: #f5f7fb;
  background: rgba(4, 10, 16, 0.92);
  border: 0;
  border-radius: 0;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.demo-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.ha-popup-shell {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  height: 100%;
  padding: 0 14px 14px;
  background: #050d13;
  overflow: auto;
}

.ha-popup-header {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  color: #f5f7fb;
}

.ha-popup-header h2 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
}

.ha-popup-menu {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  justify-self: end;
  color: rgba(245, 247, 251, 0.74);
  font-size: 26px;
}

.ha-popup-main-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  color: #f5f7fb;
  background: rgba(255, 204, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: none;
}

.ha-popup-main-card[hidden] {
  display: none !important;
}

.ha-popup-main-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffcc00;
  font-size: 42px;
}

.ha-popup-main-card p,
.ha-popup-main-card strong,
.ha-popup-main-card small {
  display: block;
  margin: 0;
}

.ha-popup-main-card p {
  color: rgba(245, 247, 251, 0.58);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.ha-popup-main-card strong {
  margin-top: 3px;
  font-size: 28px;
  line-height: 1.12;
}

.ha-popup-main-card small {
  margin-top: 5px;
  color: rgba(245, 247, 251, 0.68);
  font-size: 14px;
  line-height: 1.3;
}

.demo-detail {
  margin: 0;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #f5f7fb;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.problem-band,
.offer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: #fff;
}

.problem-band {
  background:
    linear-gradient(135deg, rgba(5, 61, 56, 0.96), rgba(15, 23, 22, 0.98)),
    url("assets/hero-smart-home.png") center / cover;
}

.offer-band {
  background:
    linear-gradient(135deg, rgba(5, 61, 56, 0.96), rgba(13, 22, 28, 0.98)),
    url("assets/ha-background.jpg") center / cover;
}

.problem-band div,
.offer-band div {
  max-width: 920px;
}

.problem-band p,
.offer-band p {
  max-width: 860px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.section {
  padding: clamp(64px, 7vw, 108px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.outcomes {
  background: #fff;
}

.proof-grid,
.outcome-grid,
.package-grid,
.standard-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.proof-grid,
.standard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.outcome-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid article,
.outcome-grid article,
.package-card,
.standard-grid article,
.faq-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 251, 0.92));
  border: 1px solid rgba(219, 227, 225, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(8, 20, 19, 0.08);
}

.proof-grid article,
.outcome-grid article,
.standard-grid article {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.proof-grid i,
.outcome-grid i,
.standard-grid i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
  border-radius: 8px;
  font-size: 28px;
}

.standard-grid i {
  background: linear-gradient(135deg, #123a36, #2f73d9);
  font-size: 27px;
}

.proof-grid h3,
.proof-grid p,
.standard-grid h3,
.standard-grid p {
  margin: 0;
}

.outcome-grid strong {
  font-size: 20px;
}

.proof-grid p,
.outcome-grid span,
.package-card p,
.package-card li,
.standard-grid p,
.faq-grid p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.94));
  border: 1px solid rgba(219, 227, 225, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(8, 20, 19, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover,
.proof-grid article:hover,
.outcome-grid article:hover,
.standard-grid article:hover,
.faq-grid article:hover {
  border-color: rgba(4, 153, 135, 0.36);
  box-shadow: 0 22px 70px rgba(8, 20, 19, 0.12);
  transform: translateY(-3px);
}

.service-card p {
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
  border-radius: 8px;
  font-size: 23px;
  font-weight: 800;
}

.package-section {
  background:
    linear-gradient(180deg, rgba(237, 244, 242, 0.86), rgba(255, 255, 255, 0.96));
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: 28px;
}

.package-card span {
  width: max-content;
  padding: 7px 10px;
  color: #053d38;
  background: #dff8f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.package-card h3,
.package-card p {
  margin: 0;
}

.package-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.package-card strong {
  margin-top: auto;
  color: var(--teal-dark);
}

.package-card.featured {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(4, 153, 135, 0.98), rgba(9, 28, 37, 0.98)),
    url("assets/ha-background.jpg") center / cover;
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-10px);
  box-shadow: 0 28px 80px rgba(5, 61, 56, 0.24);
}

.package-card.featured p,
.package-card.featured li,
.package-card.featured strong {
  color: rgba(255, 255, 255, 0.82);
}

.package-card.featured span {
  color: #17211f;
  background: #c7f5e6;
}

.process {
  background: #fff;
}

.standard-section {
  background:
    linear-gradient(180deg, rgba(247, 251, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 190px;
  padding: 58px 20px 20px;
  background: #fff;
  border: 1px solid rgba(219, 227, 225, 0.92);
  border-radius: 8px;
  counter-increment: step;
  box-shadow: 0 16px 44px rgba(8, 20, 19, 0.07);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
  border-radius: 50%;
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 8px;
  color: var(--muted);
}

.faq-section {
  background: #fff;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid article {
  padding: 24px;
}

.faq-grid h3,
.faq-grid p {
  margin: 0;
}

.faq-grid p {
  margin-top: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.contact-direct {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 251, 0.92));
  border: 1px solid rgba(219, 227, 225, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(8, 20, 19, 0.08);
}

.contact-direct i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #04a891, #2f73d9);
  border-radius: 8px;
  font-size: 24px;
}

.contact-direct div {
  display: grid;
  gap: 4px;
}

.contact-direct a {
  color: var(--teal-dark);
  font-weight: 900;
}

.contact-direct span {
  color: var(--muted);
}

.form-helper {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 5px;
  background: var(--warm);
  border-radius: 4px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 227, 225, 0.92);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(8, 20, 19, 0.1);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  color: var(--ink);
  background: #f8fbfa;
  border: 1px solid #d8e3e0;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--teal-dark);
}

.footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero,
  .contact-section,
  .demo-explainer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ha-layout {
    grid-template-columns: 1fr;
  }

  .ha-sidebar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .room-tab {
    text-align: center;
  }

  .problem-band,
  .offer-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-strip,
  .proof-grid,
  .outcome-grid,
  .package-grid,
  .standard-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-card.featured {
    transform: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 40px;
  }

  .quick-points,
  .service-grid,
  .steps,
  .trust-strip,
  .outcome-grid,
  .package-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .tablet {
    padding: 10px;
  }

  .tablet::before {
    inset: 0;
  }

  .dashboard-screen {
    min-height: auto;
    padding: 14px;
  }

  .dashboard-topbar {
    flex-direction: column;
  }

  .dashboard-grid,
  .status-row,
  .ha-sidebar {
    grid-template-columns: 1fr;
  }

  .dash-card,
  .climate-card,
  .energy-card,
  .lights-card,
  .security-card,
  .water-card,
  .scenes-card {
    grid-column: auto;
    grid-row: auto;
    min-height: 112px;
  }

  .footer {
    flex-direction: column;
  }
}

/* Studio polish pass */
body:not(.ha-only) {
  --brand-deep: #071312;
  --brand-ink: #0d1716;
  --brand-glass: rgba(8, 18, 17, 0.72);
  --brand-mint: #9ff1df;
  --brand-teal: #0ea493;
}

body:not(.ha-only) .site-header {
  max-width: 1380px;
  margin-inline: auto;
}

body:not(.ha-only) .hero {
  grid-template-columns: minmax(420px, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
  overflow: hidden;
}

body:not(.ha-only) .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(121, 234, 216, 0.18), transparent 28%),
    radial-gradient(circle at 82% 44%, rgba(47, 115, 217, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 12, 12, 0.22) 100%);
}

body:not(.ha-only) .hero-copy {
  max-width: 660px;
}

body:not(.ha-only) h1 {
  text-wrap: balance;
}

body:not(.ha-only) .hero-actions {
  margin-top: 34px;
}

body:not(.ha-only) .button.primary {
  color: #f8fffd;
  background: linear-gradient(135deg, #0aa390, #0d766d);
  box-shadow: 0 18px 46px rgba(10, 163, 144, 0.28);
}

body:not(.ha-only) .button.secondary {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-service-strip span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 14px 16px;
  color: rgba(247, 255, 252, 0.76);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.hero-service-strip strong {
  color: #f9fffd;
  font-size: 23px;
  line-height: 1.05;
}

.hero-service-strip em {
  font-style: normal;
  font-size: 13px;
}

body:not(.ha-only) .hero-proof {
  margin-top: 18px;
}

body:not(.ha-only) .quick-points {
  gap: 10px;
  margin-top: 26px;
}

body:not(.ha-only) .quick-points div {
  min-height: 112px;
  background: rgba(4, 14, 13, 0.36);
}

.demo-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 12px;
  padding: 10px 12px;
  color: rgba(247, 255, 252, 0.72);
  background: rgba(7, 13, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 750;
}

.demo-label span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.demo-label i {
  color: var(--brand-mint);
  font-size: 18px;
}

body:not(.ha-only) .tablet {
  max-width: 760px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(159, 241, 223, 0.54), rgba(255, 255, 255, 0.08), rgba(47, 115, 217, 0.28)) border-box;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:not(.ha-only) .dashboard-screen {
  height: min(72vh, 690px);
  min-height: 560px;
  background:
    linear-gradient(rgba(9, 23, 30, 0.18), rgba(9, 23, 30, 0.22)),
    center / cover no-repeat url("assets/ha-background.jpg"),
    #102633;
}

body:not(.ha-only) .ha-shell {
  width: min(620px, 100%);
}

body:not(.ha-only) .ha-chip-row {
  min-height: 136px;
  padding-top: 2px;
}

body:not(.ha-only) .ha-badge {
  background: rgba(13, 20, 26, 0.78);
  border-color: rgba(255, 255, 255, 0.13);
}

body:not(.ha-only) .ha-card-grid {
  gap: 12px;
  padding-inline: 12px;
}

body:not(.ha-only) .ha-room-card {
  min-height: 116px;
  background: rgba(113, 164, 181, 0.66);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

body:not(.ha-only) .ha-room-card span:last-child {
  font-size: 25px;
}

body:not(.ha-only) .ha-trash-card {
  min-height: 158px;
  margin-top: 1px;
  background:
    linear-gradient(rgba(111, 160, 178, 0.72), rgba(18, 48, 78, 0.62));
  border-color: rgba(255, 255, 255, 0.15);
}

body:not(.ha-only) .trust-strip {
  transform: translateY(-4px);
}

body:not(.ha-only) .demo-explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: end;
}

body:not(.ha-only) .problem-band {
  background:
    linear-gradient(135deg, rgba(5, 22, 20, 0.96), rgba(8, 49, 44, 0.92)),
    url("assets/ha-background.jpg") center / cover;
}

body:not(.ha-only) .problem-band h2,
body:not(.ha-only) .offer-band h2 {
  max-width: 920px;
}

body:not(.ha-only) .service-grid,
body:not(.ha-only) .proof-grid,
body:not(.ha-only) .outcome-grid,
body:not(.ha-only) .standard-grid,
body:not(.ha-only) .faq-grid {
  gap: 18px;
}

body:not(.ha-only) .service-card,
body:not(.ha-only) .proof-grid article,
body:not(.ha-only) .outcome-grid article,
body:not(.ha-only) .package-card,
body:not(.ha-only) .standard-grid article,
body:not(.ha-only) .case-grid article,
body:not(.ha-only) .faq-grid article,
body:not(.ha-only) .steps li,
body:not(.ha-only) .contact-form,
body:not(.ha-only) .contact-direct {
  border-radius: 8px;
}

body:not(.ha-only) .package-card.featured {
  transform: translateY(-8px);
}

@media (max-width: 1180px) {
  body:not(.ha-only) .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body:not(.ha-only) .hero-copy {
    max-width: 820px;
  }

  body:not(.ha-only) .hero-media {
    width: min(820px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  body:not(.ha-only) .site-header {
    gap: 10px;
    padding: 10px 12px;
  }

  body:not(.ha-only) .hero {
    padding-top: 26px;
    gap: 22px;
  }

  body:not(.ha-only) h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  body:not(.ha-only) .lead {
    font-size: 17px;
  }

  .hero-service-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-service-strip span {
    min-height: auto;
    grid-template-columns: 92px 1fr;
    align-items: center;
    padding: 11px 12px;
  }

  .hero-service-strip strong {
    font-size: 19px;
  }

  body:not(.ha-only) .quick-points {
    display: none;
  }

  .demo-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
  }

  body:not(.ha-only) .tablet {
    padding: 8px;
  }

  body:not(.ha-only) .dashboard-screen {
    height: 660px;
    min-height: 660px;
  }

  body:not(.ha-only) .ha-chip-row {
    min-height: 132px;
  }

  body:not(.ha-only) .ha-room-card {
    min-height: 84px;
  }

  body:not(.ha-only) .ha-room-card span:last-child {
    font-size: 19px;
  }

  body:not(.ha-only) .ha-trash-card {
    min-height: 126px;
  }

  body:not(.ha-only) .demo-explainer {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
}

/* Modern brand pass */
body:not(.ha-only) {
  color: #101715;
  background:
    linear-gradient(180deg, #f8faf8 0%, #eef4f1 52%, #f8faf8 100%);
}

body:not(.ha-only) .site-header {
  top: 18px;
  min-height: 62px;
  padding: 10px;
  background: rgba(8, 18, 17, 0.74);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

body:not(.ha-only) .brand {
  gap: 12px;
  font-size: 16px;
  letter-spacing: 0;
}

body:not(.ha-only) .brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #13b8a5, #0d766d);
  border-radius: 10px;
}

body:not(.ha-only) .nav a {
  color: rgba(247, 255, 252, 0.74);
  font-weight: 720;
}

body:not(.ha-only) .site-header .nav-cta {
  min-width: 178px;
  color: #061815;
  background: #a9f4e5;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

body:not(.ha-only) .hero {
  min-height: 100svh;
  padding-top: clamp(118px, 10vw, 146px);
  background:
    linear-gradient(90deg, rgba(5, 14, 13, 0.96) 0%, rgba(7, 28, 25, 0.9) 43%, rgba(8, 17, 18, 0.54) 100%),
    url("assets/hero-smart-home.png") center / cover no-repeat;
}

body:not(.ha-only) .hero::after {
  height: 150px;
  background: linear-gradient(180deg, rgba(248, 250, 248, 0), #f8faf8 92%);
}

body:not(.ha-only) .hero-copy {
  align-self: center;
  max-width: 640px;
}

body:not(.ha-only) .eyebrow {
  margin-bottom: 14px;
  color: #93f5e3;
  font-size: 12px;
  font-weight: 900;
}

body:not(.ha-only) h1 {
  max-width: 660px;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 0.94;
}

body:not(.ha-only) .lead {
  max-width: 570px;
  margin-top: 26px;
  color: rgba(239, 250, 247, 0.76);
  font-size: 20px;
}

body:not(.ha-only) .hero-actions {
  gap: 10px;
}

body:not(.ha-only) .button {
  border-radius: 10px;
}

body:not(.ha-only) .button.primary {
  background: linear-gradient(135deg, #12b3a0, #0a756c);
  box-shadow: 0 18px 48px rgba(7, 142, 128, 0.32);
}

body:not(.ha-only) .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-service-strip {
  max-width: 590px;
}

.hero-service-strip span {
  min-height: 94px;
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.hero-service-strip strong {
  font-size: 24px;
}

body:not(.ha-only) .hero-proof span {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.085);
  border-radius: 999px;
}

body:not(.ha-only) .quick-points {
  display: none;
}

.demo-label {
  max-width: 790px;
  background: rgba(8, 18, 17, 0.74);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

body:not(.ha-only) .tablet {
  max-width: 790px;
  padding: 12px;
  border-radius: 10px;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

body:not(.ha-only) .dashboard-screen {
  height: min(72vh, 700px);
  min-height: 590px;
  border-radius: 10px;
}

body:not(.ha-only) .ha-shell {
  width: min(640px, 100%);
}

body:not(.ha-only) .ha-card-grid {
  gap: 12px;
}

body:not(.ha-only) .ha-room-card {
  min-height: 112px;
  border-radius: 20px;
  background: rgba(109, 164, 183, 0.68);
}

body:not(.ha-only) .ha-room-card span:last-child {
  font-size: 24px;
}

body:not(.ha-only) .trust-strip {
  max-width: 1200px;
  margin-top: -38px;
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(7, 18, 17, 0.12);
}

body:not(.ha-only) .section,
body:not(.ha-only) .demo-explainer {
  max-width: 1240px;
}

body:not(.ha-only) .section {
  padding-top: clamp(70px, 7vw, 112px);
  padding-bottom: clamp(70px, 7vw, 112px);
}

body:not(.ha-only) .section-heading {
  max-width: 780px;
}

body:not(.ha-only) .section-heading h2,
body:not(.ha-only) .demo-explainer h2 {
  color: #101715;
  font-size: clamp(34px, 4.3vw, 56px);
}

body:not(.ha-only) .service-card,
body:not(.ha-only) .proof-grid article,
body:not(.ha-only) .outcome-grid article,
body:not(.ha-only) .standard-grid article,
body:not(.ha-only) .case-grid article,
body:not(.ha-only) .faq-grid article,
body:not(.ha-only) .steps li,
body:not(.ha-only) .package-card,
body:not(.ha-only) .contact-form,
body:not(.ha-only) .contact-direct {
  border-radius: 14px;
  border-color: rgba(201, 214, 209, 0.76);
  box-shadow:
    0 18px 42px rgba(20, 34, 31, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body:not(.ha-only) .proof-grid article,
body:not(.ha-only) .outcome-grid article,
body:not(.ha-only) .standard-grid article,
body:not(.ha-only) .case-grid article,
body:not(.ha-only) .service-card,
body:not(.ha-only) .steps li {
  padding: 28px;
}

body:not(.ha-only) .proof-grid i,
body:not(.ha-only) .outcome-grid i,
body:not(.ha-only) .standard-grid i,
body:not(.ha-only) .icon,
body:not(.ha-only) .contact-direct i {
  border-radius: 12px;
}

body:not(.ha-only) .problem-band,
body:not(.ha-only) .offer-band {
  max-width: 1260px;
  margin-inline: auto;
  border-radius: 18px;
}

body:not(.ha-only) .case-grid {
  gap: 20px;
}

body:not(.ha-only) .case-tag,
body:not(.ha-only) .package-card span {
  border-radius: 999px;
}

body:not(.ha-only) .process .steps li {
  display: grid;
  grid-template-rows: 36px auto 1fr;
  gap: 14px;
  min-height: 216px;
  padding: 24px;
}

body:not(.ha-only) .process .steps li::before {
  position: static;
  width: 36px;
  height: 36px;
  background: #07534c;
}

body:not(.ha-only) .process .steps strong {
  font-size: 20px;
}

@media (max-width: 1180px) {
  body:not(.ha-only) .hero {
    grid-template-columns: 1fr;
    padding-top: 112px;
  }

  body:not(.ha-only) .hero-copy {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  body:not(.ha-only) .site-header {
    position: sticky;
    top: 0;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    overflow: visible;
    background: rgba(8, 18, 17, 0.98);
  }

  body:not(.ha-only) .site-header .nav {
    display: none !important;
  }

  body:not(.ha-only) .site-header .nav-cta {
    width: 100%;
    min-height: 46px;
  }

  body:not(.ha-only) .brand {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    min-height: 38px;
    padding-top: 2px;
    font-size: 15px;
    line-height: 1.15;
  }

  body:not(.ha-only) .brand span:last-child {
    display: block;
    line-height: 1.2;
    overflow: visible;
  }

  body:not(.ha-only) .brand-mark {
    width: 36px;
    height: 36px;
  }

  body:not(.ha-only) .hero {
    padding: 34px 18px 42px;
  }

  body:not(.ha-only) h1 {
    font-size: 40px;
    line-height: 0.98;
  }

  body:not(.ha-only) .lead {
    margin-top: 20px;
    font-size: 17px;
  }

  body:not(.ha-only) .hero-actions {
    display: grid;
    margin-top: 26px;
  }

  .hero-service-strip {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .hero-service-strip span {
    grid-template-columns: 104px 1fr;
    min-height: 0;
    padding: 12px 14px;
  }

  .hero-service-strip em {
    align-self: center;
    line-height: 1.25;
  }

  body:not(.ha-only) .hero-proof {
    gap: 8px;
  }

  body:not(.ha-only) .hero-proof span {
    font-size: 12px;
  }

  .demo-label {
    display: none;
  }

  body:not(.ha-only) .tablet {
    margin-top: 4px;
    padding: 8px;
    border-radius: 14px;
  }

  body:not(.ha-only) .dashboard-screen {
    height: 620px;
    min-height: 620px;
    border-radius: 12px;
  }

  body:not(.ha-only) .ha-room-card {
    min-height: 82px;
    border-radius: 18px;
  }

  body:not(.ha-only) .trust-strip {
    margin-top: 0;
    border-radius: 0;
  }

  body:not(.ha-only) .section {
    padding: 58px 18px;
  }

  body:not(.ha-only) .section-heading h2,
  body:not(.ha-only) .demo-explainer h2 {
    font-size: 31px;
  }

  body:not(.ha-only) .process .steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "number title"
      ". text";
    gap: 9px 12px;
    min-height: 0;
    padding: 20px;
  }

  body:not(.ha-only) .process .steps li::before {
    grid-area: number;
    width: 36px;
    height: 36px;
  }

  body:not(.ha-only) .process .steps strong {
    grid-area: title;
    align-self: center;
    font-size: 18px;
  }

  body:not(.ha-only) .process .steps span {
    grid-area: text;
    margin: 0;
  }
}

@media (max-width: 680px) {
  body:not(.ha-only) .site-header {
    display: flex;
    position: sticky;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(245, 247, 248, 0.96);
  }

  body:not(.ha-only) .nav {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  body:not(.ha-only) .hero {
    display: grid;
    gap: 26px;
    padding: 28px 16px 34px;
  }

  body:not(.ha-only) .hero-copy {
    order: 1;
    padding: 0;
  }

  body:not(.ha-only) .hero-media {
    order: 2;
    width: 100%;
  }

  body:not(.ha-only) .hero-actions {
    display: grid;
  }

  body:not(.ha-only) .quick-points {
    gap: 10px;
  }

  body:not(.ha-only) .tablet {
    padding: 10px;
    background: #101615;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(10, 40, 36, 0.24);
  }

  body:not(.ha-only) .tablet::before {
    display: block;
    inset: -12px;
    border-radius: 8px;
  }

  body:not(.ha-only) .dashboard-screen {
    height: 680px;
    min-height: 680px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }

  body:not(.ha-only) .ha-mobile-top {
    min-height: 72px;
    padding: 12px 14px 0;
  }

  body:not(.ha-only) .demo-caption {
    display: block;
    padding: 0 4px;
    color: var(--muted);
  }

  body:not(.ha-only) .trust-strip {
    margin: 0 16px 44px;
  }

  body:not(.ha-only) .section,
  body:not(.ha-only) .demo-explainer,
  body:not(.ha-only) .problem-band,
  body:not(.ha-only) .offer-band {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 680px) {
  .site-header {
    display: none;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0 0 32px;
  }

  .hero-media {
    order: 1;
    width: 100%;
  }

  .hero-copy {
    order: 2;
    padding: 0 18px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .tablet {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .tablet::before,
  .tablet-camera {
    display: none;
  }

  .dashboard-screen {
    min-height: 100svh;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .dashboard-topbar {
    display: none;
  }

  .ha-mobile-top {
    grid-template-columns: 34px 34px 34px 34px 34px 1fr 34px;
    gap: 10px;
    align-items: end;
    min-height: 108px;
    padding: 58px 12px 8px;
  }

  .ha-top-icon {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .ha-top-icon.active::after {
    bottom: -8px;
  }

  .ha-chip-row {
    gap: 6px;
    min-height: 142px;
    padding: 0 10px 7px;
    margin-top: -1px;
  }

  .ha-badge-line {
    gap: 2px;
  }

  .ha-badge {
    height: 42px;
    min-width: 48px;
    max-width: 48px;
    padding: 0;
    border-radius: 16px;
    font-size: 13px;
  }

  .ha-badge.icon-only {
    width: 48px;
  }

  .ha-badge i {
    width: 21px;
    height: 21px;
    font-size: 21px;
  }

  .ha-badge[data-badge="lights"] { min-width: 72px; max-width: 72px; padding: 0 10px; font-size: 14px; }
  .ha-badge[data-badge="tv"] { min-width: 98px; max-width: 98px; padding: 0 12px; }
  .ha-badge[data-badge="weather"] { min-width: 178px; max-width: 178px; padding: 0 12px; }
  .ha-badge[data-badge="projector"] { min-width: 156px; max-width: 156px; padding: 0 12px; }
  .ha-badge[data-badge="time"] { min-width: 118px; max-width: 118px; padding: 0 12px; font-size: 15px; }
  .ha-badge[data-badge="lock"] { min-width: 88px; max-width: 88px; padding: 0 10px; }
  .ha-badge[data-badge="gate"],
  .ha-badge[data-badge="walk"],
  .ha-badge[data-badge="cameras"] {
    width: 46px;
    height: 46px;
    min-width: 46px;
    max-width: 46px;
    border-radius: 18px;
  }

  .ha-badge[data-badge="gate"] i,
  .ha-badge[data-badge="walk"] i,
  .ha-badge[data-badge="cameras"] i {
    width: 23px;
    height: 23px;
    font-size: 23px;
  }

  .ha-card-grid {
    gap: 8px;
    padding: 0 10px 8px;
  }

  .ha-room-card {
    min-height: 82px;
    grid-template-rows: 30px 1fr;
    padding: 9px 6px 8px;
    border-radius: 18px;
  }

  .ha-icon {
    width: 30px;
    height: 30px;
    font-size: 30px;
  }

  .ha-room-card span:last-child {
    font-size: 19px;
  }

  .ha-trash-card {
    min-height: 124px;
    margin: 0 10px 12px;
    width: calc(100% - 20px);
    padding: 10px 14px 12px;
    border-radius: 18px;
  }

  .ha-trash-card > strong {
    font-size: 23px;
  }

  .trash-dashboard {
    gap: 8px;
  }

  .trash-dashboard em {
    font-size: 14px;
  }

  .trash-dashboard b {
    font-size: 22px;
  }

  .trash-dashboard i {
    font-size: 30px;
  }

  .demo-caption {
    display: none;
  }

  .demo-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
  }

  .ha-popup-shell {
    padding: 10px;
  }

  .ha-popup-header {
    min-height: 72px;
  }

  .ha-popup-header h2 {
    font-size: 29px;
  }

  .ha-popup-main-card {
    min-height: 112px;
    grid-template-columns: 54px 1fr;
    border-radius: 20px;
  }

  .ha-popup-main-icon {
    width: 46px;
    height: 46px;
    font-size: 40px;
  }

  .ha-popup-main-card strong {
    font-size: 21px;
  }

  .ha-popup-main-card small {
    font-size: 13px;
  }

  .ha-popup-status-row {
    grid-template-columns: 1fr;
  }

  .ha-popup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ha-popup-tile {
    min-height: 104px;
    padding: 10px 8px;
  }

  .ha-popup-tile i {
    font-size: 34px;
  }

  .ha-popup-tile strong {
    align-self: center;
    font-size: 14px;
    line-height: 1.1;
  }

  .ha-popup-tile span {
    margin-top: 2px;
    font-size: 12px;
  }

  .ha-popup-tile.wide {
      min-height: 138px;
    }

  .ha-popup-tile.light {
      grid-template-columns: 44px 1fr;
      grid-template-areas:
        "icon title"
        "icon value"
        "brightness brightness"
        "temperature temperature";
      justify-items: stretch;
      text-align: left;
    }
  
  .ha-popup-tile.media {
      min-height: 235px;
    }

  .garden-camera-feed {
      min-height: 129px;
    }

  .garden-light-card {
      min-height: 124px;
      grid-template-columns: 42px 1fr 52px;
      gap: 9px 10px;
      padding: 18px 24px 18px;
      border-radius: 20px;
    }

  .garden-light-card > i {
      width: 42px;
      height: 42px;
      font-size: 29px;
    }

  .garden-light-copy strong {
      font-size: 20px;
    }

  .garden-light-copy span {
      font-size: 17px;
    }

  .garden-brightness-slider,
  .garden-brightness-slider::-webkit-slider-runnable-track,
  .garden-temp-button {
      height: 46px;
    }

  .garden-brightness-slider::-webkit-slider-thumb {
      width: 22px;
      height: 22px;
      margin-top: 12px;
    }

  .garden-temp-button {
      width: 52px;
      font-size: 22px;
    }

  .garden-popup-grid .ha-popup-tile {
      grid-template-columns: 1fr;
      grid-template-areas: "icon" "title" "value";
      justify-items: center;
      align-content: center;
      min-height: 150px;
      padding: 16px 10px 14px;
      text-align: center;
    }

  .garden-popup-grid .ha-popup-tile i {
      font-size: 42px;
    }

  .garden-popup-grid .ha-popup-tile strong {
      font-size: 20px;
    }

  .garden-popup-grid .ha-popup-tile span {
      font-size: 15px;
    }

  .ha-summary-card {
      min-height: 88px;
      padding: 14px 18px;
    }

  .ha-summary-card strong {
      font-size: 25px;
    }

  .ha-summary-card span {
      font-size: 13px;
    }

  .ha-camera-block {
      height: min(58vh, 560px);
      min-height: 390px;
    }

  .section-grid.cols-3,
  .section-grid.cols-4 {
      gap: 8px;
    }

  .section-grid.cols-3 .ha-popup-tile,
  .section-grid.cols-4 .ha-popup-tile {
      min-height: 74px;
      padding: 9px 6px;
    }

  .section-grid.cols-3 .ha-popup-tile i,
  .section-grid.cols-4 .ha-popup-tile i {
      font-size: 28px;
    }

  .section-grid.cols-3 .ha-popup-tile strong,
  .section-grid.cols-4 .ha-popup-tile strong {
      font-size: 13px;
    }

  .ha-popup-stack .ha-popup-tile {
      min-height: 86px;
      padding: 10px 6px;
    }

  .ha-popup-stack .ha-popup-tile i {
      font-size: 30px;
    }

  .ha-popup-stack .ha-popup-tile strong {
      font-size: 14px;
    }

  .spotify-popup {
      gap: 10px;
    }

  .spotify-hero {
      min-height: 82px;
      padding: 12px 14px;
    }

  .spotify-hero i {
      font-size: 40px;
    }

  .spotify-hero strong {
      font-size: 28px;
    }

  .spotify-hero span {
      font-size: 13px;
    }

  .spotify-now {
      min-height: 66px;
      padding: 8px 10px;
      border-radius: 16px;
    }

  .spotify-now i {
      font-size: 28px;
    }

  .spotify-now strong {
      font-size: 12px;
      line-height: 1.08;
    }

  .spotify-now span {
      font-size: 11px;
      line-height: 1.08;
    }

  .spotify-device-grid .ha-popup-tile,
  .spotify-control-grid .ha-popup-tile {
      min-height: 66px;
      padding: 8px 6px;
      border-radius: 16px;
    }

  .spotify-playlist-row {
      min-height: 50px;
      padding: 6px 10px;
      border-radius: 16px;
    }

  .spotify-playlist-menu {
      max-height: 230px;
      overflow: auto;
      border-radius: 16px;
    }

  .spotify-playlist-menu button {
      min-height: 38px;
      font-size: 13px;
    }

  .section-grid .ha-popup-tile.compact {
      grid-template-columns: 42px 1fr;
      grid-template-areas: "icon title" "icon value";
      justify-items: start;
      min-height: 64px;
      padding: 8px 10px;
      text-align: left;
    }

  .section-grid .ha-popup-tile.compact i {
      font-size: 32px;
    }

  .section-grid .ha-popup-tile.compact strong {
      font-size: 16px;
    }

  .section-grid .ha-popup-tile.compact span {
      font-size: 12px;
    }
}

@media (max-width: 960px) {
  body:not(.ha-only) .trust-strip,
  body:not(.ha-only) .proof-grid,
  body:not(.ha-only) .outcome-grid,
  body:not(.ha-only) .package-grid,
  body:not(.ha-only) .standard-grid,
  body:not(.ha-only) .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.ha-only) .package-card.featured {
    transform: none;
  }
}

@media (max-width: 680px) {
  body:not(.ha-only) .site-header {
    display: flex !important;
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(245, 247, 248, 0.96);
  }

  body:not(.ha-only) .nav {
    display: flex !important;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  body:not(.ha-only) .nav-cta {
    width: 100%;
    justify-content: center;
  }

  body:not(.ha-only) .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: auto;
    padding: 28px 16px 34px;
  }

  body:not(.ha-only) .hero-copy {
    order: 1;
    padding: 0;
  }

  body:not(.ha-only) .hero-media {
    order: 2;
    width: 100%;
  }

  body:not(.ha-only) h1 {
    font-size: 36px;
  }

  body:not(.ha-only) .hero-actions {
    display: grid;
  }

  body:not(.ha-only) .quick-points,
  body:not(.ha-only) .service-grid,
  body:not(.ha-only) .steps,
  body:not(.ha-only) .trust-strip,
  body:not(.ha-only) .proof-grid,
  body:not(.ha-only) .outcome-grid,
  body:not(.ha-only) .package-grid,
  body:not(.ha-only) .standard-grid,
  body:not(.ha-only) .faq-grid {
    grid-template-columns: 1fr;
  }

  body:not(.ha-only) .tablet {
    padding: 10px;
    background: #101615;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(10, 40, 36, 0.24);
  }

  body:not(.ha-only) .tablet::before {
    display: block;
    inset: -12px;
    border-radius: 8px;
  }

  body:not(.ha-only) .tablet-camera {
    display: block;
  }

  body:not(.ha-only) .dashboard-screen {
    height: 680px;
    min-height: 680px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }

  body:not(.ha-only) .ha-mobile-top {
    min-height: 72px;
    padding: 12px 14px 0;
  }

  body:not(.ha-only) .demo-caption {
    display: block;
    padding: 0 4px;
    color: var(--muted);
  }

  body:not(.ha-only) .trust-strip {
    margin: 0 16px 44px;
  }

  body:not(.ha-only) .section,
  body:not(.ha-only) .demo-explainer,
  body:not(.ha-only) .problem-band,
  body:not(.ha-only) .offer-band {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Professional visual refresh */
body:not(.ha-only) {
  color: #111817;
  background: #f6f8f7;
}

body:not(.ha-only) .site-header {
  position: fixed;
  top: 16px;
  right: clamp(16px, 3vw, 48px);
  left: clamp(16px, 3vw, 48px);
  z-index: 40;
  min-height: 64px;
  padding: 10px 12px;
  color: #f7fffc;
  background: rgba(9, 18, 17, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(145%);
}

body:not(.ha-only) .brand {
  color: #f7fffc;
  font-size: 15px;
}

body:not(.ha-only) .brand-mark {
  background: #0aa390;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body:not(.ha-only) .nav {
  gap: 6px;
  color: rgba(247, 255, 252, 0.72);
  font-size: 14px;
}

body:not(.ha-only) .nav a {
  padding: 9px 11px;
  border-radius: 8px;
}

body:not(.ha-only) .nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

body:not(.ha-only) .site-header .nav-cta {
  min-height: 42px;
  padding: 10px 14px;
  color: #061a17;
  background: #a7f3e3;
  border-color: rgba(167, 243, 227, 0.72);
  box-shadow: none;
}

body:not(.ha-only) .hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(96px, 9vw, 124px) clamp(18px, 4vw, 56px) clamp(44px, 6vw, 76px);
  background:
    linear-gradient(90deg, rgba(5, 12, 12, 0.96) 0%, rgba(6, 28, 26, 0.9) 44%, rgba(6, 14, 16, 0.62) 100%),
    url("assets/hero-smart-home.png") center / cover no-repeat;
}

body:not(.ha-only) .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 248, 247, 0), #f6f8f7 88%);
}

body:not(.ha-only) .hero > * {
  position: relative;
  z-index: 1;
}

body:not(.ha-only) .hero-brandline {
  display: none;
}

body:not(.ha-only) .eyebrow {
  color: #79ead8;
  font-size: 12px;
}

body:not(.ha-only) h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.7vw, 64px);
  line-height: 0.98;
}

body:not(.ha-only) h2 {
  max-width: 850px;
  font-size: clamp(32px, 4.2vw, 54px);
}

body:not(.ha-only) .lead {
  max-width: 620px;
  color: rgba(239, 250, 247, 0.74);
  font-size: 20px;
}

body:not(.ha-only) .button {
  min-height: 50px;
  border-radius: 8px;
  box-shadow: none;
}

body:not(.ha-only) .button.primary {
  background: #0aa390;
}

body:not(.ha-only) .button.primary:hover {
  background: #0db59f;
}

body:not(.ha-only) .button.secondary {
  color: #f7fffc;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

body:not(.ha-only) .hero-proof span,
body:not(.ha-only) .quick-points div {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

body:not(.ha-only) .quick-points div {
  min-height: 122px;
  padding: 18px;
}

body:not(.ha-only) .quick-points dt {
  font-size: 22px;
}

body:not(.ha-only) .tablet {
  max-width: 720px;
  padding: 12px;
  background: rgba(7, 13, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

body:not(.ha-only) .tablet::before {
  display: none;
}

body:not(.ha-only) .tablet-camera {
  top: 7px;
  background: rgba(255, 255, 255, 0.22);
}

body:not(.ha-only) .dashboard-screen {
  height: min(70vh, 680px);
  min-height: 500px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body:not(.ha-only) .demo-caption {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(247, 255, 252, 0.68);
}

body:not(.ha-only) .trust-strip {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: -42px auto 70px;
  padding: 0 clamp(18px, 3vw, 28px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(210, 221, 218, 0.88);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(7, 18, 17, 0.13);
}

body:not(.ha-only) .trust-strip div {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body:not(.ha-only) .demo-explainer,
body:not(.ha-only) .section,
body:not(.ha-only) .problem-band,
body:not(.ha-only) .offer-band {
  padding-right: clamp(20px, 6vw, 86px);
  padding-left: clamp(20px, 6vw, 86px);
}

body:not(.ha-only) .demo-explainer {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 26px;
  padding-bottom: 72px;
}

body:not(.ha-only) .problem-band,
body:not(.ha-only) .offer-band {
  margin: 0 clamp(20px, 3vw, 46px);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(5, 23, 21, 0.2);
}

body:not(.ha-only) .section {
  max-width: 1360px;
  margin: 0 auto;
}

body:not(.ha-only) .section-heading {
  max-width: 860px;
  margin-bottom: 38px;
}

body:not(.ha-only) .proof-grid article,
body:not(.ha-only) .outcome-grid article,
body:not(.ha-only) .package-card,
body:not(.ha-only) .standard-grid article,
body:not(.ha-only) .case-grid article,
body:not(.ha-only) .faq-grid article,
body:not(.ha-only) .service-card,
body:not(.ha-only) .steps li,
body:not(.ha-only) .contact-form,
body:not(.ha-only) .contact-direct {
  background: #fff;
  border-color: rgba(210, 221, 218, 0.88);
  box-shadow: 0 14px 38px rgba(10, 24, 23, 0.07);
}

body:not(.ha-only) .proof-grid article,
body:not(.ha-only) .outcome-grid article,
body:not(.ha-only) .standard-grid article,
body:not(.ha-only) .case-grid article,
body:not(.ha-only) .service-card,
body:not(.ha-only) .steps li {
  padding: 26px;
}

body:not(.ha-only) .proof-grid i,
body:not(.ha-only) .outcome-grid i,
body:not(.ha-only) .standard-grid i,
body:not(.ha-only) .icon,
body:not(.ha-only) .contact-direct i {
  color: #063e37;
  background: #d8faf2;
}

body:not(.ha-only) .service-card:hover,
body:not(.ha-only) .proof-grid article:hover,
body:not(.ha-only) .outcome-grid article:hover,
body:not(.ha-only) .standard-grid article:hover,
body:not(.ha-only) .case-grid article:hover,
body:not(.ha-only) .faq-grid article:hover {
  border-color: rgba(10, 163, 144, 0.42);
  box-shadow: 0 20px 54px rgba(10, 24, 23, 0.11);
  transform: translateY(-2px);
}

body:not(.ha-only) .package-section,
body:not(.ha-only) .standard-section,
body:not(.ha-only) .case-section,
body:not(.ha-only) .outcomes,
body:not(.ha-only) .process,
body:not(.ha-only) .faq-section {
  background: transparent;
}

body:not(.ha-only) .package-card.featured {
  background:
    linear-gradient(145deg, rgba(6, 41, 38, 0.98), rgba(7, 17, 19, 0.98)),
    url("assets/ha-background.jpg") center / cover;
  box-shadow: 0 28px 72px rgba(5, 34, 31, 0.22);
}

body:not(.ha-only) .package-card span {
  color: #063e37;
  background: #d8faf2;
}

body:not(.ha-only) .steps li::before {
  background: #063e37;
}

body:not(.ha-only) .case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body:not(.ha-only) .case-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 320px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body:not(.ha-only) .case-grid h3,
body:not(.ha-only) .case-grid p,
body:not(.ha-only) .case-grid dl {
  margin: 0;
}

body:not(.ha-only) .case-grid p,
body:not(.ha-only) .case-grid dd {
  color: var(--muted);
}

body:not(.ha-only) .case-tag {
  width: max-content;
  padding: 7px 10px;
  color: #063e37;
  background: #d8faf2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

body:not(.ha-only) .case-grid dl {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(210, 221, 218, 0.88);
}

body:not(.ha-only) .case-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

body:not(.ha-only) .case-grid dt {
  font-weight: 900;
}

body:not(.ha-only) .case-grid dd {
  margin: 0;
  text-align: right;
}

body:not(.ha-only) input,
body:not(.ha-only) select,
body:not(.ha-only) textarea {
  background: #fbfdfc;
  border-color: #d8e3e0;
}

body:not(.ha-only) .footer {
  margin-top: 32px;
  background: #071312;
}

@media (max-width: 960px) {
  body:not(.ha-only) .site-header {
    right: 14px;
    left: 14px;
  }

  body:not(.ha-only) .hero {
    padding-top: 112px;
  }

  body:not(.ha-only) .problem-band,
  body:not(.ha-only) .offer-band {
    margin-right: 16px;
    margin-left: 16px;
  }

  body:not(.ha-only) .trust-strip {
    margin-right: 16px;
    margin-left: 16px;
  }

  body:not(.ha-only) .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body:not(.ha-only) .site-header {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    min-height: auto;
    border-radius: 0;
    background: rgba(9, 18, 17, 0.94);
  }

  body:not(.ha-only) .brand {
    font-size: 14px;
  }

  body:not(.ha-only) .hero {
    padding-top: 34px;
  }

  body:not(.ha-only) h1 {
    font-size: 38px;
  }

  body:not(.ha-only) .lead {
    font-size: 18px;
  }

  body:not(.ha-only) .trust-strip {
    margin-top: -16px;
    padding: 0;
  }

  body:not(.ha-only) .problem-band,
  body:not(.ha-only) .offer-band {
    margin-right: 0;
    margin-left: 0;
    border-radius: 0;
  }
}

/* Mobile repair after polish pass */
section,
.section,
.demo-explainer,
.problem-band,
.offer-band {
  scroll-margin-top: 96px;
}

body:not(.ha-only) .process .steps li {
  padding: 58px 22px 24px;
}

body:not(.ha-only) .process .steps li::before {
  top: 20px;
  left: 22px;
}

@media (max-width: 680px) {
  body:not(.ha-only) .site-header {
    position: sticky;
    top: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px 12px;
    overflow: hidden;
    color: #f7fffc;
    background: rgba(9, 18, 17, 0.97);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
  }

  body:not(.ha-only) .brand {
    align-self: flex-start;
    min-width: 0;
    color: #f7fffc;
  }

  body:not(.ha-only) .nav {
    display: flex !important;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    color: rgba(247, 255, 252, 0.78);
    white-space: nowrap;
    scrollbar-width: none;
  }

  body:not(.ha-only) .nav::-webkit-scrollbar {
    display: none;
  }

  body:not(.ha-only) .nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 15px;
  }

  body:not(.ha-only) .site-header .nav-cta {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
  }

  body:not(.ha-only) .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  body:not(.ha-only) .section-heading {
    margin-bottom: 22px;
  }

  body:not(.ha-only) .section-heading h2 {
    font-size: 31px;
    line-height: 1.08;
  }

  body:not(.ha-only) .process .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body:not(.ha-only) .process .steps li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "number title"
      ". text";
    column-gap: 12px;
    row-gap: 8px;
    min-height: 0;
    padding: 20px;
  }

  body:not(.ha-only) .process .steps li::before {
    position: static;
    grid-area: number;
    width: 36px;
    height: 36px;
    align-self: start;
    font-size: 17px;
  }

  body:not(.ha-only) .process .steps strong {
    grid-area: title;
    align-self: center;
    min-width: 0;
    font-size: 18px;
    line-height: 1.18;
    overflow-wrap: normal;
  }

  body:not(.ha-only) .process .steps span {
    grid-area: text;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.45;
  }

  body:not(.ha-only) .site-header .nav {
    justify-content: space-between;
    gap: 2px;
    overflow: visible;
  }

  body:not(.ha-only) .site-header .nav a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 2px;
    text-align: center;
    font-size: 14px;
  }
}
