@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --black: #0B0F37;
  --purple: #2C3161;
  --box-shadow: rgba(11, 15, 55, 0.24);
  --box-shadow-light: rgba(11, 15, 55, 0.08);
  --border-grey: rgba(11, 15, 55, 0.12);
  --modal-background: rgba(11, 15, 55, 0.64);
  --grey: #6C6D7A;
  --active-grey: #A1A2AA;
  --light-grey: #DCDCDF;
  --blue: #006CFF;
  --light-blue: #E4EFF6;
  --focus-blue: #CDF0FF;
  --yellow: #FAF2DD;
  --green: #E4F8E6;
  --red: #FFE1E1;
  --white: #FFF;
  --light-white: rgba(255, 255, 255, 0.64);
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
html {
  color: var(--black);
  font: normal 16px/1.5 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.cf:after {
    clear: both;
}
.fleft {
  float: left;
}
.fright {
  float: right;
}
.dont-show {
  display: none !important;
}
img, .block {
  display: block;
  width: 100%;
}

/***** text + copy *****/
a {
  color: var(--blue);
  outline: none;
}
a:hover {
  text-decoration: none;
}
a:focus {
  border-radius: 8px;
  box-shadow: 0 0 0 4px var(--focus-blue);
}
a:active {
  opacity: 0.64
}
input, button, select {
  font-family: inherit;
  font-size: inherit;
}
h1, h2, h3, h4 {
  line-height: 1.25;
}
.h1 {
  font-size: 48px;
}
.h1-mini {
  font-size: 40px;
}
.h2 {
  font-size: 32px;
}
.h3 {
  font-size: 24px;
}
.body-large {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}
.body {
  font-size: 16px;
}
.microcopy {
  font-size: 14px;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-grey {
  color: var(--grey);
}
.text-white {
  color: var(--white);
}
.text-bold {
  font-weight: 700;
}

/***** colors & misc *****/
.bg-black {
  background-color: var(--black);
}
.bg-blue {
  background-color: var(--light-blue);
}
.bg-green {
  background-color: var(--green);
}
.bg-red {
  background-color: var(--red);
}
.bg-yellow {
  background-color: var(--yellow);
}
.rounded {
  border-radius: 24px;
}
.hide-for-small {
  display: block;
}
.inline {
  display: inline;
}
.show-for-small {
  display: none;
}

/***** spacing *****/
.mar-bot--4 {
  margin-bottom: 4px;
}
.mar-bot--8 {
  margin-bottom: 8px;
}
.mar-bot--12 {
  margin-bottom: 12px;
}
.mar-bot--16 {
  margin-bottom: 16px;
}
.mar-bot--24 {
  margin-bottom: 24px;
}
.mar-bot--32 {
  margin-bottom: 32px;
}
.mar-bot--40 {
  margin-bottom: 40px;
}
.mar-bot--48 {
  margin-bottom: 48px;
}
.mar-bot--64 {
  margin-bottom: 64px;
}
.mar-bot--80 {
  margin-bottom: 80px;
}

/***** grid *****/
.grid {
  display: grid;
}
.grid-gap--16 {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}
.grid-gap--24 {
  grid-column-gap: 24px;
  grid-row-gap: 24px;
}
.grid-gap--32 {
  grid-column-gap: 32px;
  grid-row-gap: 32px;
}
.grid-gap--40 {
  grid-column-gap: 40px;
  grid-row-gap: 40px;
}
.grid-gap--64 {
  grid-column-gap: 64px;
  grid-row-gap: 64px;
}
.grid-gap--80 {
  grid-column-gap: 80px;
  grid-row-gap: 80px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
.grid--6 {
  grid-template-columns: repeat(6, 1fr);
}

/****** header ******/
.header {
  left: 0;
  padding: 24px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}
.header-wrapper {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 20px;
  margin: auto;
  max-width: 1200px;
  padding: 16px 24px 16px 16px;
}
.logo {
  background-image: url(images/logo-black.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  height: 48px;
  margin-right: 32px;
  text-indent: -9999px;
  width: 210px;
}
.menu {
  list-style: none;
}
.menu-item {
  display: inline-block;
  line-height: 48px;
}
.menu-item:nth-of-type(n+2) {
  margin-left: 24px;
}
.menu-item a {
  color: var(--black);
  display: block;
  text-decoration: none;
}
.current-menu-item a {
  color: var(--active-grey);
  font-weight: 600;
}

/***** CTAs *****/
.btn {
  border-radius: 8px;
  display: inline-block;
  font-weight: 700;
  line-height: 40px;
  outline: none;
  padding: 0 16px;
  text-decoration: none;
  transition: box-shadow 0.2s ease-in-out;
}
.btn:hover {
  box-shadow: 0 4px 12px var(--box-shadow);
}
.btn:focus {
  box-shadow: 0 0 0 4px var(--focus-blue);
  transition: none;
}
.btn:active {
  box-shadow: none;
  opacity: 1;
  transform: scale(0.975);
  transition: none;
}
.btn-primary, .menu-item .btn-primary {
  background-color: var(--blue);
  color: var(--white);
}
.btn-large {
  box-shadow: 0 4px 12px var(--box-shadow);
  font-size: 20px;
  line-height: 48px;
  padding: 0 24px;
}
.btn-secondary, .menu-item .btn-secondary {
  background-color: var(--white);
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 400;
}

/***** hero *****/
.hero {
  padding-bottom: 64px;
  padding-top: calc(82px + 32px + 64px);
  text-align: center;
}
.hero-with-image, .hero-with-overlap {
  padding-bottom: 0;
  position: relative;
}
.hero-with-image {
  color: var(--white);
}
.hero-with-image::before,
.hero-with-image::after,
.hero-with-overlap::before {
  content: "";
  height: 720px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.hero-with-image::before {
  background-color: var(--black);
  opacity: 0.48;
  z-index: 0;
}
.hero-with-image::after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}
.hero-with-overlap::before {
  background-color: var(--yellow);
  height: 560px;
  z-index: -1;
}
.hero-with-overlap-home::before {
  background-color: var(--green);
  height: 640px;
  z-index: -1;
}
.hero-content, .tab-visual {
  position: relative;
  z-index: 2;
}

/***** tabs *****/
.tabs {
  list-style: none;
  text-align: center;
}
.tab-item {
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.tab-item:active {
  opacity: 0.64;
}
.tab-item:nth-of-type(n+2) {
  margin-left: 32px;
}
.tab-item-active {
  cursor: default;
  font-weight: 700;
}
.tab-item-active:active {
  opacity: 1;
}
.tab-item-active::before {
  content: "For ";
}
.tab-item-active::after {
  background-color: var(--white);
  border-radius: 4px;
  content: "";
  height: 4px;
  left: 0;
  opacity: 0.64;
  position: absolute;
  top: calc(100% + 8px);
  width: 100%;
}
.tab-visual {
  background-color: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border-grey);
  box-shadow: 0 8px 24px var(--box-shadow-light);
  min-height: 200px;
  overflow: hidden;
}
.tab-visual-video {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}
.tab-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/***** main content *****/
.wrapper {
  margin: auto;
  max-width: 1200px;
}
.main-content {
  padding: 112px 0;
  text-align: center;
}
.main-content-demo {
  padding: 80px 0;
}
.content-block:nth-of-type(n+2) {
  margin-top: 80px;
}
.main-content-demo .content-block:nth-of-type(n+2) {
  margin-top: 48px;
}
.copy {
  margin: auto;
  max-width: 720px;
}
.copy p + p {
  margin-top: 24px;
}
.copy ul {
  padding-left: 16px;
}
.copy li + li {
  margin-top: 12px;
}
.copy hr {
  height: 48px;
}

/***** social proof *****/
.social-proof-item {
  line-height: 1.25;
  padding: 24px 32px;
}

/***** feature cards *****/
.feature-card-item {
  padding: 48px 48px 0;
}
.feature-card-item-img {
  border: 1px solid var(--border-grey);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  margin-top: 16px;
  height: auto !important;
}
.feature-icon-item-img {
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  width: auto;
}

/***** pricing *****/
.pricing-module {
  background-color: var(--white);
  border: 1px solid var(--border-grey);
  padding: 48px;
}
.pricing-item:nth-of-type(n+2) {
  margin-top: 4px;
}
.pricing-item-img {
  display: inline;
  position: relative;
  top: -2px;
  vertical-align: middle;
  width: auto;
  z-index: 1;
}
.tooltip {
  position: relative;
}
.tooltip-content {
  background-color: var(--purple);
  border-radius: 4px;
  color: var(--white);
  display: none;
  font-size: 13px;
  padding: 12px 16px;
  position: absolute;
  left: calc(-90px + 8px);
  top: calc(100% + 4px);
  width: 180px;
  z-index: 2;
}
.tooltip:hover .tooltip-content {
  display: block;
}

/***** reviews *****/
.review-item {
  border: 1px solid var(--border-grey);
  display: grid;
  grid-row-gap: 12px;
  padding: 48px;
}
.review-stars-img {
  display: inline-block;
  height: 24px;
  margin-bottom: -6px;
  width: auto;
}
.review-stars-img:nth-of-type(n+2) {
  margin-left: -6px;
}
.customer-logo-img {
  height: auto !important;
  width: 100%;
}
.more-reviews {
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 16px;
}

/***** blog items *****/
.blog-item {
  color: var(--black);
  display: block;
  padding: 8px;
  text-decoration: none;
  /*transition: transform 0.12s ease-in-out;*/
}
.blog-item .h3 {
  transition: color 0.16s ease-in-out;
}
/*.blog-item:hover {
  transform: scale(1.025);
}*/
.blog-item:hover .h3 {
  color: var(--blue);
}
.blog-item-img {
  height: auto !important;
}

/***** exec team *****/
.exec-team {
  margin-top: 64px;
}
.exec-team-item {
  border: 1px solid var(--border-grey);
  padding: 40px 48px 0;
}
.exec-team-item-img {
  height: auto !important;
}

/***** footer *****/
.footer {
  padding-bottom: 40px;
}
.footer-cta {
  padding: 120px 0;
}
.footer-module {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}
.footer-group-img {
  height: 40px;
  width: auto;
}
.footer-group:nth-of-type(1) {
  padding-right: 64px;
}
.footer-group a {
  color: var(--light-white);
}
.footer-list .menu-item {
  display: block;
  line-height: 1.5;
}
.footer-list .menu-item:nth-of-type(n+2) {
  margin-left: 0;
}
.footer-list .menu-item a {
  color: var(--light-white);
  display: block;
  text-decoration: underline;
}
.footer-list .menu-item a:hover {
  text-decoration: none;
}
.footer-list-item {
    color: var(--light-white);
    display: block;
}
.footer-list-item:nth-of-type(n+2),
.footer-list .menu-item:nth-of-type(n+2) {
  margin-top: 4px;
}
.footer-partner {
  background-color: var(--purple);
  border-radius: 8px;
  padding: 16px;
}
.footer-partner a {
  color: var(--white);
}

/***** demo *****/
.demo-go-back {
  color: var(--grey);
  display: inline-block;
  text-decoration: none;
  width: auto;
}
.demo-go-back-img {
  display: inline-block;
  margin-right: 4px;
  position: relative;
  top: -2px;
  vertical-align: middle;
  width: auto;
}
.recorded-demo {
  border: 1px solid var(--border-grey);
  height: 400px;
  overflow: hidden;
  position: relative;
}
.recorded-demo-video {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.recorded-demo-img {
  height: 400px;
  width: auto;
}
.recorded-demo-play {
  cursor: pointer;
  height: 64px;
  left: calc(50% - 200px);
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0px);
  width: 64px;
}
.recorded-demo-play:active {
  opacity: 0.64;
}
.recorded-demo-form {
  background-color: var(--white);
  height: 400px;
  max-width: 460px;
  position: absolute;
  right: 0;
  width: 45%;
}
.recorded-demo-form-content {
  left: 0;
  padding: 0 64px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}
.inline-form,
.hbspt-form > form {
  position: relative;
}
.inline-form-input,
.hs-input {
  border: 1px solid var(--border-grey);
  border-radius: 4px;
  font-size: 20px;
  padding: 0 12px;
  display: block;
  line-height: 56px;
  outline: none;
  width: 100%;
}
.inline-form-input:hover,
.hs-input:hover {
  border-color: var(--black);
}
.inline-form-input:focus,
.hs-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px var(--focus-blue);
}
.inline-form-button,
.hs-button {
  background-color: var(--blue);
  background-image: url(images/icon-arrow-right.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  border-radius: 100%;
  cursor: pointer;
  height: 40px;
  outline: none;
  position: absolute;
  right: 16px;
  text-indent: -9999px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
}
.inline-form-button:active,
.hs-button:active {
  opacity: 0.64;
}
.inline-form-button:focus,
.hs-button:focus {
  box-shadow: 0 0 0 4px var(--focus-blue);
}
.demo-cta {
  border: 1px solid var(--border-grey);
  padding: 80px;
}
.inline-form-input-search {
  font-size: 16px;
  line-height: 40px;
}
.inline-form-button-search {
  background-size: 20px;
  height: 24px;
  width: 24px;
}
/***** Hubspot form tweaks *****/
.hs_email label > span {
  display: none;
}
.submitted-message {
  background-color: var(--green);
  border-radius: 8px;
  padding: 16px;
}
.submitted-message p {
  display: inline;
}
.hs-error-msgs {
  color: red;
  font-size: 16px;
  list-style-type: none;
  margin-top: 8px;
  position: absolute;
}

/***** modal *****/
.modal-container {
  background-color: var(--modal-background);
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}
.modal-container.shown {
  display: table;
}
.modal-content {
  display: table-cell;
  height: 100%;
  padding: 0 24px;
  vertical-align: middle;
  width: 100%;
}
.modal-video-content {
  border-radius: 24px;
  box-shadow: 0 8px 24px var(--box-shadow-light);
  margin: auto;
  max-width: 800px;
  overflow: hidden;
}
.modal-video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}
.close-modal {
  background-color: var(--white);
  background-image: url(images/icon-close.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px;
  border-radius: 100%;
  cursor: pointer;
  height: 40px;
  position: absolute;
  right: 24px;
  text-indent: -9999px;
  top: 24px;
  width: 40px;
}
.close-modal:active {
  opacity: 0.64;
}

/***** media queries *****/
@media screen and (min-width: 1400px) {
  .wrapper, .header-wrapper {
    max-width: 1296px;
  }
}
@media screen and (max-width: 1240px) {
  .header-wrapper {
    padding: 16px;
  }
  .logo {
    background-image: url(images/logo-bug.png);
    margin-right: 16px;
    width: 48px;
  }
  .wrapper {
    padding-left: 24px;
    padding-right: 24px;
  }
  .feature-card-item {
    padding: 32px 32px 0;
  }
  .pricing-module,
  .review-item {
    padding: 32px;
  }
}

/***** targeted background image for performance of header image *****/
@media screen and (min-width: 801px) {
  .hero-with-image::after {
    background-image: url(images/hero-back-puzzle.jpg);
    /**
    to override in WordPress
    background-image: url(/wp-content/themes/office-puzzle/{your_file_here});
    **/
  }
}
@media screen and (max-width: 800px) {
  /***** hero adjustments *****/
  .hero-with-image::after {
    background-image: url(images/hero-back-puzzle-mobile.jpg);
    /**
    to override in WordPress
    background-image: url(/wp-content/themes/office-puzzle/{your_file_here});
    **/
  }
  .h1 {
    font-size: 40px;
  }
  .h1-mini {
    font-size: 32px;
  }
  .h2 {
    font-size: 24px;
  }
  .h3 {
    font-size: 20px;
  }
  .body-large {
    font-size: 18px;
  }

  .fleft,
  .fright {
    float: none;
  }

  .main-content {
    padding: 64px 24px 80px;
  }
  .content-block:nth-of-type(n+2) {
    margin-top: 64px;
  }
  .footer-cta {
    padding: 80px 0;
  }

  /***** nav adjustments *****/
  .logo {
    background-image: url(images/logo-black.png);
    height: 40px;
    width: 190px;
  }
  .nav {
    position: relative;
  }
  .menu {
    display: none;
  }
  .show-hide-menu {
    background-color: transparent;
    background-image: url(images/icon-menu.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 32px;
    height: 40px;
    position: absolute;
    right: 0;
    text-indent: -9999px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
  }
  .show-hide-menu.shown {
    background-image: url(images/icon-close.svg);
  }
  .mobile-menu {
    background-color: var(--white);
    /*height: 100%;*/
    display: none;
    left: 0;
    opacity: 0;
    padding: 24px 24px 32px;
    position: fixed;
    bottom: -50%;
    width: 100%;
    z-index: 9;
  }
  .mobile-menu-back {
    background-color: var(--white);
    display: none;
    height: 100vh;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    bottom: -50%;
    width: 100%;
    z-index: 5;
  }
  .mobile-menu.shown,
  .mobile-menu-back.shown {
    bottom: 0;
    display: block;
    opacity: 1;
  }
  .mobile-menu.shown {
    animation: fadeIn 0.4s ease-in-out;
  }
  .mobile-menu-back.shown {
    animation: fadeIn 0.24s ease-in-out;
  }
  .menu-item {
    font-size: 20px;
    display: block;
    line-height: 1.5;
  }
  .menu-item:nth-of-type(n+2) {
    margin-left: 0;
    margin-top: 24px;
  }
  .menu-item .btn {
    text-align: center;
  }
  .footer-list .menu-item, .footer-list-item {
    font-size: 16px;
  }
  .tab-wrapper {
    padding: 0;
  }
  .tabs {
    padding: 0 24px;
    text-align: left;
  }
  .tab-item:nth-of-type(n+2) {
    margin-left: 16px;
  }
  .tab-visual {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }

  .recorded-demo-video {
    position: relative;
    height: 240px;
  }
  .recorded-demo {
    height: auto;
  }
  .recorded-demo-play {
    left: 50%;
  }
  .recorded-demo-form {
    height: auto;
    max-width: 100%;
    position: relative;
    width: 100%;
  }
  .recorded-demo-form-content {
    position: static;
    transform: none;
  }
  .demo-cta,
  .recorded-demo-form-content {
    padding: 32px;
  }

  .hero,
  .main-content,
  .text-center {
    text-align: left;
  }
  .feature-icon-item-img {
    margin-left: 0;
    margin-right: 0;
  }
  .grid,
  .blog-item {
    display: block;
  }
  .grid > div:nth-of-type(n+2),
  .blog-item:nth-of-type(n+2) {
    margin-top: 24px;
  }
  /***** features grid override *****/
  .grid > .feature-icon-item:nth-of-type(n+2) {
    margin-top: 40px;
  }
  .customer-logos {
    display: grid;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    grid-template-columns: repeat(3, 1fr);
  }
  .customer-logos > div:nth-of-type(n+2) {
    margin-top: 0;
  }
  .hide-for-small,
  .tab-item-active::before {
    display: none;
  }
  .show-for-small {
    display: block;
  }
}

@keyframes fadeIn {
  0% {
    bottom: -50%;
    display: none;
    opacity: 0;
  }
  100%{
    bottom: 0;
    display: block;
    opacity: 1;
  }
}

/***** blog stuff *****/
.blog-index-content,
.blog-detail-content {
  padding-top: 32px;
}
.blog-post {
  padding-right: 64px;
  text-align: left;
  width: 70%;
}
.blog-post-side {
  text-align: left;
  width: 25%;
}
@media screen and (max-width: 800px) {
  .blog-post {
    padding-right: 0;
    width: 100%;
  }
  .blog-post-side {
    width: 100%;
  }
}
.blog-post-meta, .blog-post-meta a {
  color: var(--grey);
}
.blog-post-content b,
.blog-post-content strong {
  font-weight: 700;
}
.blog-post-content ul {
  padding-left: 24px;
}
.blog-post-content p + *,
.blog-post-content ul + *,
.blog-post-content ol + * {
  margin-top: 20px;
}
.blog-post-content p + h2,
.blog-post-content p + h3 {
  margin-top: 32px;
}
.blog-post-content h2 + *,
.blog-post-content h3 + * {
  margin-top: 12px;
}
.blog-post-content iframe {
  width: 100%;
}
.related-post {
  color: var(--black);
}
.related-post:nth-of-type(n+2) {
  margin-top: 12px;
}

/***** view transisitions *****/
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: fade 0.3s ease both;
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}