/* Demo pages (demo.checkflow.io): the sign-up call to action, the small-screen menu and the
   sticky bar. Only _LayoutMarketing loads this file. */

/* The call to action. The app's primary green (#1ab394) is 2.6:1 against white text, so the
   button uses the darker green the marketing site uses for text (5.6:1). */
.btn-demo-cta,
.btn-demo-cta:focus,
.btn-demo-cta:active {
  background-color: #0a7563;
  border-color: #0a7563;
  color: #fff;
  font-weight: 600;
}
.btn-demo-cta:hover,
.btn-demo-cta:active:hover,
.btn-demo-cta:active:focus {
  background-color: #08604f;
  border-color: #08604f;
  color: #fff;
}

/* style.css removes the focus ring from every .btn and link; the demo chrome puts one back for
   keyboard users. */
.demo-navbar a:focus-visible,
.demo-navbar .btn:focus-visible,
.demo-cta-bar .btn:focus-visible {
  outline: 3px solid #0a7563 !important;
  outline-offset: 2px;
}

.demo-navbar .marketing-navbar-buttons > .btn,
.demo-navbar .marketing-navbar-buttons > .demo-nav-menu {
  margin-left: 4px;
}

.demo-nav-menu {
  vertical-align: middle;
}
.demo-nav-menu .dropdown-menu {
  left: auto;
  right: 0;
}
.demo-nav-menu .dropdown-toggle {
  min-height: 40px;
  font-size: 14px;
}
.demo-nav-menu .dropdown-menu > li > a {
  padding: 10px 16px;
  font-size: 14px;
  color: #444;
}

/* Phones and tablets: a slim bar at the bottom with the one action. The checklist and the
   designer scroll inside panels sized to the window (style.css: .triple-container,
   .checklist-container), so those panels end above the bar instead, and the designer's task
   toolbar sits on top of it. */
.demo-cta-bar {
  display: none;
}
@media (max-width: 991px) {
  body.has-demo-cta-bar {
    --demo-cta-bar-height: calc(63px + env(safe-area-inset-bottom));
  }
  .demo-cta-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035; /* above the page, below Bootstrap modals (1040+) */
    height: var(--demo-cta-bar-height);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e7eaec;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }
  .demo-cta-bar .btn {
    display: block;
    width: 100%;
    max-width: 480px;
    height: 46px;
    margin: 0 auto;
    padding: 11px 16px;
    font-size: 16px;
    line-height: 22px;
  }
  body.has-demo-cta-bar .triple-container {
    height: calc(100vh - 62px - var(--demo-cta-bar-height));
  }
  body.has-demo-cta-bar .checklist-container {
    height: calc(100vh - 65px - var(--demo-cta-bar-height)) !important;
  }
  body.has-demo-cta-bar .template-tasks-toolbar {
    bottom: var(--demo-cta-bar-height);
  }
}
