@font-face {
  font-family: Outfit;
  src: url("assets/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #134d8d;
  --deep-blue: #103e73;
  --red: #e3161b;
  --red-hover: #ad1215;
  --ink: #202020;
  --muted: #626a73;
  --page: #f5f7f9;
  --border: #dce2e8;
  --pale-blue: #edf4fc;
  --gutter: 24px;
  font-family: Outfit, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }

:focus-visible {
  outline: 3px solid #1265be;
  outline-offset: 3px;
}

.symbol-library { position: absolute; width: 0; height: 0; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(1080px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wordmark { display: block; max-width: 50%; height: auto; }
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #efdcb5;
  border-radius: 100px;
  padding: 6px 11px;
  color: #6b4206;
  background: #fff6e3;
  font-size: 13px;
  font-weight: 600;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #a76608; }
main { padding-block: 24px 16px; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 184px;
  border-radius: 20px;
  padding: 28px clamp(22px, 4vw, 40px);
  background: linear-gradient(112deg, #0e345f, var(--blue) 72%, #205f9f);
  color: #fff;
}

.hero-art {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -10px;
  width: 370px;
  max-width: 55%;
  color: #b4d8ff;
  opacity: .56;
  pointer-events: none;
}

.hero-copy { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dcecff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 20px; height: 2px; background: #ff6268; }
.hero h1 {
  margin-top: 5px;
  font-size: clamp(33px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 650;
}

.hero-description { margin-top: 8px; color: #e3efff; font-size: 16px; }
.module-nav { display: none; }

.modules {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.module {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 9px #122e5208;
}

.module-heading { display: flex; align-items: center; gap: 12px; }
.module-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--pale-blue);
}

.module-icon .icon { width: 23px; height: 23px; }
.module-title { flex: 1; }
.module h2 { font-size: 24px; font-weight: 650; line-height: 1.12; letter-spacing: -.02em; }
.provider { margin-top: 3px; color: var(--muted); font-size: 13px; }
.count {
  flex: none;
  padding: 5px 10px;
  border-radius: 100px;
  background: #eef1f5;
  color: #495561;
  font-size: 13px;
  font-weight: 550;
}

.count.has-active { background: #e5f3eb; color: #1f643e; }
.scene-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-block: 18px 10px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--red-hover); }
.button-secondary { background: #fff; border-color: var(--border); color: var(--deep-blue); }
.button-secondary:hover:not(:disabled) { background: var(--pale-blue); border-color: #b6c9de; }
.button:disabled { background: #edf0f4; color: #626a73; border-color: #e0e5ea; }

.light-list, .floor-list { list-style: none; padding: 0; margin: 0; }
.light-list li + li { border-top: 1px solid #e8ecf1; }
.light-row {
  display: grid;
  width: 100%;
  min-height: 59px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.light-row:focus-visible { outline-offset: -2px; }
.light-row:hover:not(:disabled) { background: #f6f9fc; }
.light-icon { margin-inline: 5px; color: var(--blue); }
.light-copy { display: grid; gap: 2px; font-size: 16px; font-weight: 550; line-height: 1.2; }
.light-state { color: var(--muted); font-size: 13px; font-weight: 400; }
.light-row[aria-checked="true"] .light-icon { color: #8c5506; fill: #fff0c6; }
.light-row[aria-checked="true"] .light-state { color: #246640; font-weight: 550; }
.switch-track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 100px;
  background: #79899b;
}

.switch-track::after {
  position: absolute;
  content: "";
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 120ms ease-out;
}

.light-row[aria-checked="true"] .switch-track { background: var(--blue); }
.light-row[aria-checked="true"] .switch-track::after { transform: translateX(18px); }
.floor-intro { margin-block: 16px 12px; color: var(--muted); font-size: 15px; }
.floor-list { display: grid; gap: 8px; }
.floor-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfd;
}

.floor-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: var(--deep-blue);
  background: var(--pale-blue);
  font-size: 18px;
  font-weight: 650;
}

.floor-name { font-size: 16px; font-weight: 550; line-height: 1.18; }
.floor-name small { display: block; margin-top: 3px; color: #765013; font-size: 12px; font-weight: 500; }
.floor-offline .floor-number { color: #4b5865; background: #edf0f4; }
.button-call { background: var(--blue); color: #fff; padding-inline: 11px; }
.button-call:hover:not(:disabled) { background: var(--deep-blue); }
.call-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--deep-blue);
  background: var(--pale-blue);
  font-size: 14px;
}

.call-note .icon { width: 17px; height: 17px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px 4px;
  color: var(--muted);
  font-size: 13px;
}

[hidden], [data-mode="demo"] .live-only, [data-mode="live"] .demo-only { display: none !important; }
.live-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-actions a { text-decoration: none; }
#ewelink-tools { margin-top: 12px; }
.light-row:not([role="switch"]) .switch-track { visibility: hidden; }
.scene-feedback { margin-top: 10px; color: var(--muted); font-size: 14px; }
.scene-feedback:empty, .login-message:empty { display: none; }
[data-mode="demo"] .scene-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.login-page { max-width: 420px; }
.login-page h1 { color: var(--deep-blue); font-size: 30px; }
.login-page p { margin-top: 8px; color: var(--muted); }
.login-page .login-message { color: var(--red-hover); }
.login-form { display: grid; gap: 14px; margin-top: 20px; }
.login-form label { display: grid; gap: 5px; font-weight: 550; }
.login-form input {
  width: 100%; min-height: 44px; padding: 8px 10px;
  border: 1px solid #aab9c8; border-radius: 9px; font: inherit; font-size: 16px;
}

.noscript { margin-top: 14px; color: #765013; }

@media (max-width: 760px) {
  :root { --gutter: 12px; scroll-padding-top: 68px; }
  .topbar-inner { min-height: 60px; }
  .wordmark { width: 116px; }
  main { padding-top: 12px; }
  .hero { min-height: 127px; padding: 18px; border-radius: 16px; }
  .hero-art { bottom: 0; opacity: .26; }
  .hero-description { font-size: 15px; }
  .module-nav {
    position: sticky;
    z-index: 2;
    top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-block: 10px 8px;
    background: var(--page);
  }
  .module-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--deep-blue);
    background: #fff;
    font-weight: 600;
    text-decoration: none;
  }
  .module-nav a:hover { background: var(--pale-blue); }
  .module-nav .icon { width: 17px; height: 17px; }
  .modules { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 4px; }
  .module { padding: 14px; border-radius: 15px; }
  .module-heading { gap: 9px; }
  .module-icon { width: 38px; height: 38px; border-radius: 10px; }
  .module-icon .icon { width: 21px; height: 21px; }
  .module h2 { font-size: 21px; }
  .count { padding-inline: 8px; font-size: 12px; }
  .scene-actions { margin-block: 13px 5px; }
  .light-row { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .switch-track::after { transition: none; }
}
