/* Illustration and icon accents for the existing Habab Home software page. */
body.ai-home-software-illustrated {
  --hh-art-navy: #061b52;
  --hh-art-yellow: #fad936;
  --hh-art-soft-surface: #f0f4f8;
  --ink: #061b52;
  --muted: #43566d;
  --blue: #f5f8fb;
  --blue-strong: #e7eef6;
  --green: #12376d;
  --green-hover: #061b52;
  --line: #d0dbe8;
}

body.ai-home-software-illustrated a:focus-visible,
body.ai-home-software-illustrated button:focus-visible,
body.ai-home-software-illustrated summary:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--hh-art-navy);
}

@media (forced-colors: active) {
  body.ai-home-software-illustrated a:focus-visible,
  body.ai-home-software-illustrated button:focus-visible,
  body.ai-home-software-illustrated summary:focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}

body.ai-home-software-illustrated .hh-art-heading-row {
  display: flow-root;
  min-width: 0;
}

body.ai-home-software-illustrated .hh-art-title-line {
  display: contents;
}

body.ai-home-software-illustrated .hh-art-companion {
  float: right;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 0 0 10px;
  object-fit: contain;
}

body.ai-home-software-illustrated .hh-art-heading-row h1 {
  color: var(--hh-art-navy);
  text-wrap: balance;
}

body.ai-home-software-illustrated .hh-art-heading-row p {
  max-width: 64ch;
  margin-top: 0;
}

@media (min-width: 1001px) {
  body.ai-home-software-illustrated .ai-home-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
  }

  body.ai-home-software-illustrated .ai-home-product-heading {
    min-width: 0;
    min-height: 78px;
  }

  body.ai-home-software-illustrated .hh-art-title-line {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    min-height: 48px;
  }

  body.ai-home-software-illustrated .hh-art-companion {
    float: none;
    width: 48px;
    height: 48px;
    margin: 0;
    flex: none;
  }

  body.ai-home-software-illustrated .hh-art-title-line h1 {
    margin: 0;
    white-space: nowrap;
  }

  body.ai-home-software-illustrated .hh-art-heading-row p {
    max-width: none;
    margin-top: 6px;
    white-space: normal;
  }

  body.ai-home-software-illustrated .ai-home-product-actions {
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: none;
  }
}

body.ai-home-software-illustrated .hh-art-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  flex: none;
  vertical-align: middle;
}

body.ai-home-software-illustrated .hh-art-download-icon {
  width: 22px;
  height: 22px;
  margin-inline-end: 8px;
}

body.ai-home-software-illustrated .ai-home-product-actions .button-secondary,
body.ai-home-software-illustrated .ai-home-platform-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

body.ai-home-software-illustrated .ai-home-platform-links .button .hh-art-icon [stroke="#102A42"] {
  stroke: #fff8e6;
}

body.ai-home-software-illustrated .scenario-tabs button {
  color: var(--hh-art-navy);
}

body.ai-home-software-illustrated .scenario-tabs button[aria-selected="true"] {
  border-bottom-color: var(--hh-art-yellow);
}

body.ai-home-software-illustrated .scenario-tabs button:hover {
  background: #f5edcf;
}

body.ai-home-software-illustrated .scenario-tabs .hh-art-icon {
  width: 24px;
  height: 24px;
}

body.ai-home-software-illustrated .other-scenarios h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.ai-home-software-illustrated .other-scenarios h3 .hh-art-icon,
body.ai-home-software-illustrated .steps h3 .hh-art-icon {
  width: 27px;
  height: 27px;
}

body.ai-home-software-illustrated .steps h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.ai-home-software-illustrated .ai-home-directions .space-scene {
  background: var(--hh-art-soft-surface);
}

body.ai-home-software-illustrated .ai-home-directions .space-scene picture {
  display: block;
  width: 100%;
  height: 100%;
}

body.ai-home-software-illustrated .ai-home-directions .space-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.ai-home-software-illustrated .ai-home-directions .space-copy h3 .hh-art-icon {
  width: 27px;
  height: 27px;
}

@media (max-width: 620px) {
  body.ai-home-software-illustrated .hh-art-title-line {
    display: contents;
  }

  body.ai-home-software-illustrated .hh-art-companion {
    width: 64px;
    height: 64px;
    margin-left: 10px;
  }

  body.ai-home-software-illustrated .hh-art-heading-row h1 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 4px;
  }

  body.ai-home-software-illustrated .hh-art-heading-row p {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 0;
  }

  body.ai-home-software-illustrated .ai-home-product-actions .hh-art-download-icon {
    width: 18px;
    height: 18px;
    margin-inline-end: 4px;
  }

  body.ai-home-software-illustrated .ai-home-product-actions .platform-caption {
    text-align: center;
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  body.ai-home-software-illustrated .hh-art-companion {
    width: 48px;
    height: 48px;
    margin-left: 8px;
  }

  body.ai-home-software-illustrated .hh-art-heading-row h1 {
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  body.ai-home-software-illustrated .hh-art-heading-row p {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 0;
  }
}

@media (max-width: 400px) {
  body.ai-home-software-illustrated .scenario-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }

  body.ai-home-software-illustrated .scenario-tabs button {
    justify-content: center;
    gap: 5px;
    padding-inline: 4px;
    font-size: 14px;
  }

  body.ai-home-software-illustrated .scenario-tabs .hh-art-icon {
    width: 18px;
    height: 18px;
  }
}

/* Keep the illustrated mascot visibly attached to the product name. */
body.ai-home-software-illustrated .hh-art-title-line {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

body.ai-home-software-illustrated .hh-art-title-line h1 {
  margin: 0;
}

body.ai-home-software-illustrated .hh-art-companion {
  float: none;
  width: 48px;
  height: 48px;
  margin: 0;
  flex: none;
}

body.ai-home-software-illustrated .ai-home-voice .voice-recognition {
  background: var(--hh-art-soft-surface);
}

body.ai-home-software-illustrated .ai-home-voice .voice-arrow {
  color: var(--hh-art-navy);
}

body.ai-home-software-illustrated .ai-home-directions .space-copy .space-note,
body.ai-home-software-illustrated .ai-home-directions .space-close,
body.ai-home-software-illustrated .ai-home-directions .space-direction + .space-direction {
  border-color: var(--line);
}

body.ai-home-software-illustrated .compatibility-section {
  background: var(--paper);
}

body.ai-home-software-illustrated .local-section,
body.ai-home-software-illustrated .demo-section {
  background: var(--paper);
}

body.ai-home-software-illustrated .scenario-tabs,
body.ai-home-software-illustrated .other-scenarios {
  border-color: var(--line);
}

body.ai-home-software-illustrated .scenario-tabs button:hover {
  background: var(--blue-strong);
}

body.ai-home-software-illustrated .scenario-tabs button[aria-selected="true"] {
  background: var(--hh-art-navy);
  border-bottom-color: var(--hh-art-yellow);
  border-radius: 6px 6px 0 0;
  color: var(--paper);
  font-weight: 700;
}

body.ai-home-software-illustrated .network-mobile {
  background: var(--hh-art-soft-surface);
  border-color: var(--line);
}

@media (max-width: 620px) {
  body.ai-home-software-illustrated .hh-art-title-line {
    gap: 10px;
  }

  body.ai-home-software-illustrated .hh-art-companion {
    width: 42px;
    height: 42px;
  }
}
