/* nav specialized to landing page */
.logo,
.logo:hover {
  background: url('/images/logo.png') no-repeat;
  background-size: contain;
  padding-left: 3.5rem;
  margin: 0.5rem;
  min-width: 4rem;
  min-height: 2.5rem;
  line-height: 2rem;
  font-size: 140%;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo.tabnotes {
  background: url('/images/logo-tabnotes.png') no-repeat;
  background-size: contain;
  margin: 10px;
}

h2 {
  font-size: 1.85em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid var(--bg-color);
  margin-top: 2rem;
}


/* hero section */
.hero {
  text-align: center;
  padding: 2rem 0 9rem 0;
}

.hero__title {
  font-weight: 700;
  font-size: 3em;
  color: var(--primary-color);
}

.hero__description {
  line-height: 1.5;
  margin: -1rem auto 2rem auto;
  padding: 0;
  max-width: 550px;
}

.hero__switch {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -0.5rem;
  padding-bottom: 0.5rem;
  user-select: none;
}

.hero__switch .checkbox-label {
  background-color: var(--accent-color-light);
  width: 64px;
  height: 32px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  scale: 1.15;
}

.hero__switch .checkbox-label .ball {
  background-color: var(--accent-color);
  width: 26px;
  height: 26px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.hero__switch .checkbox-label i {
  width: 26px;
  color: var(--primary-color);
}

.hero__switch .checkbox-label.checked .ball {
  transform: translateX(32px);
}

.hero__switch a.checkbox-label,
.hero__switch a.checkbox-label:hover {
  text-decoration: none;
}

.hero__switch .checkbox-tooltip {
  color: var(--accent-color);
  position: absolute;
  top: 1.15rem;
  left: 4.25rem;
  text-wrap: nowrap;
}

.hero__screen {
  max-width: 900px;
  width: 100%;
  margin: -11rem auto 4rem auto;
  color: white;
  min-height: 285px;
  animation: fadeUp 2s;
  position: relative;
}

.hero__screen > img {
  width: 100%;
  max-width: 100%;
}

.hero__screen_text {
  color: var(--primary-color);
  margin: -40px auto 0;
  text-align: center;
}

.hero__terminal {
  width: 60%;
  margin: -11rem auto 3rem auto;
  text-align: left;
  color: white;
  padding: 0 1rem;
  border-radius: 4px;
  background-color: #232323;
  min-height: 285px;
  animation: fadeUp 2s;
  box-shadow: 0px 12px 36.8px 9.2px rgba(0, 0, 0, 0.1);
}

.hero__terminal pre {
  white-space: pre-line;
  padding-top: 1rem;
}

.hero__badges {
  margin: 1.5em auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.25em;
}


.featured-badge {
  background-image: url('/images/featured-badge.png');
  background-position: 0 0;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  padding: 0 0 0 24px;
  color: #146c2e;
  font-weight: 600;
  text-decoration: none;
}

.featured-badge:hover {
  color: #146c2e;
  text-decoration: none;
  font-weight: 600;
}

.tooltivity-badge {
  color: #433AC8;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.tooltivity-badge > span {
  font-size: 90%;
}

.tooltivity-badge:hover {
  color: #433AC8;
  text-decoration: none;
}


.features {
  background-color: #fff;
  padding: 1em 0;
  margin: 0 0 2em 0;
}

/* feature section */
.feature {
  display: flex;
  flex-wrap: wrap;
  margin: 3em 0;
}

.feature__item {
  max-width: calc(33% - 30px);
  margin: 0 15px;
}

.feature__item .section__title {
  margin-bottom: 0;
}

.feature__item p {
  margin-top: 0.5rem;
  line-height: 1.55rem;
}

.feature-bubble {
  border-radius: 6px;
  background-color: var(--bg-color);
  text-align: center;
  padding: 1em;
  margin: 1em 0;
}

/* keybinding section */
.keybinding {
  display: flex;
  flex-direction: column;
}

.keybinding__detail {
  flex-basis: 50%;
  padding: 0 1rem 1.5rem 3rem;
  list-style: none;
  line-height: 2rem;
}

.keybinding__detail:first-child .keybinding__title {
  position: absolute;
  right: 0.5rem;
  top: -2rem;
  background-color: white;
  padding: 0 0.5rem;
}

.keybinding__detail:last-child .keybinding__title {
  position: absolute;
  left: 0.5rem;
  top: -2rem;
  background-color: white;
  padding: 0 0.5rem;
}

.keybinding__detail code {
  font-weight: bold;
  background-color: var(--accent-color-dark);
  color: #fff;
  box-shadow: 0 1px 0 0 var(--medium-gray-color);
  border-radius: 3px;
  padding: 3px 3px 1px 3px;
  vertical-align: middle;
}


.keybinding__label {
  background: var(--white-color);
  border: 1px solid var(--light-gray-color);
  box-shadow: 0 1px 0 0 var(--medium-gray-color);
  border-radius: 3px;
  font-family: Courier;
  font-size: 0.7rem;
  color: var(--dark-gray-color);
  padding: 3px 3px 1px 3px;
  vertical-align: middle;
}

/* FAQ */
.faq_section {
  text-align: left;
  margin: 0 auto;
}

.faq_wrapper {
  margin-bottom: 2em;
}

.faq_wrapper h3.faq_question {
  margin: 0 0 1em 0;
}

.faq_wrapper p.faq_answer {
  line-height: 1.5em;
}

/* callout section */
.callout {
  text-align: center;
  padding: 1rem 0 3rem 0;
}

.callout .button--primary {
  display: inline-block;
  margin-top: 0.5rem;
}

/* changelog section */
.changelog {
  background-color: var(--bg-color);
  padding: 3rem 0;
}

.changelog__item {
  display: flex;
}

.changelog__meta {
  flex-basis: 25%;
}

.changelog__meta small {
  color: var(--primary-color-light);
  font-weight: 200;
  letter-spacing: 1px;
}

.changelog__title {
  margin-bottom: 0;
}

.changelog__callout {
  margin: 3rem auto 2rem auto;
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero__terminal {
    width: 70%;
  }
  .hero__description {
    padding: 0 0.75em;
  }  
  .hero__switch .checkbox-label  {
    scale: 1.25;
  }
  .tab__container > ul {
    right: auto;
    left: 0;
    padding-left: 0;
  }
  .tab__container .code {
    margin-top: 2rem;
  }
  .feature, .keybinding, .changelog__item {
    flex-direction: column;
  }
  .feature__item {
    max-width: 100%;
    margin: 0;
  }
  .keybinding {
    font-size: 0.8rem;
  }
  .hero__screen_text {
    margin: 1rem;
  }
  .keybinding__detail {
    padding: 0;
  }
}

.wrapper {
  margin: 0 auto;
  width: 70%;
  max-width: 900px;
}

.footer {
  text-align: center;
  background-color: var(--primary-color);
  padding: 2rem;
  color: white;
}

.hero {
  padding: 0;
  margin: 0;
}

.hero__contenteditable {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  min-height: 21rem;
  text-align: left;
}

.hero__contenteditable:focus {
  border: 1px solid transparent;
  outline: 0.1em solid darkgray;
}

.hero__screen {
  max-width: 900px;
  width: 100%;
  margin: -11rem auto 4rem auto;
  color: white;
  min-height: 285px;
  animation: fadeUp 2s;
}

.hero__description {
  max-width: 750px;
}

.hero__screen > img {
  width: 100%;
  max-width: 100%;
}

.hero__screen_text {
  color: var(--primary-color);
  margin: -40px auto 0;
  text-align: center;
}

.hero__terminal {
  width: 60%;
  margin: -11rem auto 3rem auto;
  text-align: left;
  color: white;
  padding: 0 1rem;
  border-radius: 4px;
  background-color: #232323;
  min-height: 285px;
  animation: fadeUp 2s;
  box-shadow: 0px 12px 36.8px 9.2px rgba(0, 0, 0, 0.1);
}

.hero__terminal pre {
  white-space: pre-line;
  padding-top: 1rem;
}

.hero__textarea {
  display: block;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .2), 0 4px 15px 0 rgba(0, 0, 0, .19);
  background: #fff;
  border-radius: 10px;
  padding: 0;
}

.hero__textarea label {
  display: block;
  line-height: 1.5em;
  padding-bottom: 1em;
  text-align: center;
}

.hero__textarea textarea {
  font-family: Segoe UI, SegoeUI, Segoe WP, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif;
  font-size: 15px;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  border: 1px solid var(--primary-color);
}

.hero__textarea button {
  margin: 0.75em 0;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0,30px,0);
  }
  100% {
    transform: translate3d(0,0,0);
  }
}

h2 + p,
h3 + p {
  margin-top: 0;
}

textarea {
  margin: 0;
  padding: .78571429em 1em;
  background: #fff;
  border: 1px solid rgba(34, 36, 38, .15);
  outline: 0;
  color: rgba(0, 0, 0, .87);
  border-radius: .28571429rem;
  -webkit-box-shadow: 0 0 0 0 transparent inset;
  box-shadow: 0 0 0 0 transparent inset;
  -webkit-transition: color .1s ease, border-color .1s ease;
  transition: color .1s ease, border-color .1s ease;
  font-size: 1em;
  line-height: 1.2857;
  resize: vertical;
  -webkit-appearance: none;
  tap-highlight-color: rgba(255, 255, 255, 0);
}


ul.vertical-tabs {
  display: flex;
  width: 100%;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--light-gray-color);
  margin-bottom: 1em;
}

ul.vertical-tabs > li {
  flex: 1;
  display: flex;
  font-size: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1em 0.5em;
  text-align: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  border-right: 1px solid var(--light-gray-color);
  user-select: none;
}

ul.vertical-tabs > li:last-child {
  border-right: none;
}

ul.vertical-tabs > li > i {
  font-size: 26px;
  margin-bottom: 0.5em;
}

ul.vertical-tabs > li.active {
  font-weight: bold;
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}