@import '/loader.css';

:root {
  /* https://coolors.co/483d3f-058ed9-ffffff-cc3d63-292e1e */
  --ctaColor: #058ed9;
  --bgColor: #ffffff;
  --effectColor: #cc3d63;
  --textColor: #292e1e;
  --yellowColor: #c7cc3d;
  --greenColor: #3dcc80;
}

* {
  box-sizing: border-box;
}

body,
html {
  padding: 0;
  margin: 0;
  font: 20px 'Open Sans';
  color: var(--textColor);
  max-width: 100%;
}

a {
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.hero-bg {
  --gradient-pos: 190px;
  background: linear-gradient(
    45deg,
    var(--bgColor) calc(50% + var(--gradient-pos)),
    var(--effectColor) calc(50% + var(--gradient-pos))
  );
  min-height: 90vh;
  /* box-shadow: 0 0 2px rgba(0, 0, 0, 0.3), 0 3px 7px rgba(0, 0, 0, 0.1); */
  display: flex;
  justify-content: stretch;
}

@media (max-width: 760px) {
  .hero-bg {
    background: none;
  }
}

.hero {
  padding: 60px 30px 30px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-weight: 300;
}

@media (max-width: 760px) {
  .hero {
    padding: 60px 0 30px;
  }
}

.hero-left {
  background: rgba(255, 255, 255, 0.9);
}

.grid {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-column-gap: 30px;
  max-width: 920px;
  width: 100%;
  margin: auto;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 100%;
    grid-row-gap: 30px;
    margin: 0 30px;
    max-width: calc(100% - 60px);
  }
}

.hero .col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn {
  background: var(--ctaColor);
  color: var(--bgColor);
  padding: 0.5em 1.2em;
  cursor: pointer;
  display: inline-block;
  -webkit-appearance: none;
  border: 0;
  font-size: inherit;
  font-weight: normal;
}

h1 {
  font-weight: 300;
}

p {
  margin-top: 0;
  line-height: 1.5em;
}

code {
  max-width: 100%;
  overflow-x: scroll;
  color: var(--bgColor);
  background: var(--textColor);
  padding: 2.1em 1em 1em;
  font-size: 16px;
  border-radius: 0.2em;
  position: relative;
  display: block;
}

code::before,
code::after,
code pre::before {
  content: '';
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  position: absolute;
  top: 0.5em;
}

code::before {
  left: 0.5em;
  background: var(--effectColor);
}

code::after {
  left: 1.5em;
  background: var(--yellowColor);
}

code pre::before {
  left: 2.5em;
  background: var(--greenColor);
}

pre {
  margin: 0;
}

section {
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.05),
    inset 0 7px 30px rgba(0, 0, 0, 0.1);
  padding-bottom: 40px;
}

section > header,
section > footer {
  text-align: center;
  max-width: 920px;
  margin: auto;
}

h2 {
  margin: 0 30px;
  padding-top: 40px;
  font-weight: normal;
}

h2 strong {
  text-decoration: underline;
}

.tiers {
  display: grid;
  grid-template-columns: 33.333% 33.333% 33.333%;
  grid-column-gap: 30px;
  max-width: 920px;
  margin: 50px auto 50px;
}

@media (max-width: 760px) {
  .tiers {
    grid-template-columns: 100%;
    grid-row-gap: 30px;
    margin: 30px 30px 50px;
  }
}

.tier {
  text-align: center;
  border: 4px solid var(--effectColor);
  transform: scale(0.95);
  padding: 0 0 20px;
}

.tier:nth-child(2) {
  transform: scale(1.05);
}

.tier h3 {
  border-bottom: 3px solid var(--effectColor);
  margin: 0;
  padding: 0.6em 0 0.7em;
  font-size: 1.2em;
}

.price {
  font-size: 50px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 30px;
}

.price small {
  font-size: 14px;
  margin-right: -20px;
}

ul {
  margin: 20px 0 20px;
  padding: 0;
  list-style-type: none;
  line-height: 2em;
}

li::before {
  content: '✓';
  color: var(--greenColor);
  font-size: 1.4em;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 9px;
}

.footer {
  opacity: 0.4;
  font-size: 0.8em;
  padding: 50px 0 40px;
}

.modal_open {
  overflow: hidden;
}

.modal_open #close-layer {
  content: '';
  display: block;
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#popup {
  position: fixed;
  width: 300px;
  max-width: 90%;
  z-index: 2;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bgColor);
  text-align: center;
  padding: 15px;
  display: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.modal_open #popup {
  display: block;
}

#popup.open {
  opacity: 1;
}

#popup p {
  font-size: 0.7em;
}

form {
  padding: 20px 0;
}

label {
  text-align: left;
  display: block;
  font-size: 0.8em;
  margin-bottom: 20px;
}

input {
  background: #f9f9f9;
  border: 0;
  border-bottom: 2px solid var(--effectColor);
  display: block;
  width: 100%;
  font-size: 1.25em;
  padding: 0.2em 0.3em;
  outline: none;
}

.login-section {
  display: none;
}

.show-login .login-section {
  display: block;
}
.show-login .register-section {
  display: none;
}

body > header {
  position: absolute;
  top: 20px;
  left: 50%;
  color: var(--bgColor);
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  transform: translateX(-50%);
  padding: 0 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 760px) {
  body > header {
    padding: 0 30px;
    background: var(--effectColor);
    top: 0;
  }
}

body > header a {
  color: var(--bgColor);
  font-weight: 300;
}

.loggedin .login {
  display: none;
}

.logout {
  display: none;
}

.loggedin .logout {
  display: inline;
}

em {
  font-style: normal;
  font-family: monospace;
  display: inline-block;
  background: #f3f3f3;
  padding: 0 0.3em;
  border-radius: 0.3em;
}

code pre .tt {
  color: var(--ctaColor);
}
code pre .ti {
  color: var(--yellowColor);
}
code pre .ta {
  color: #debf61;
}
code pre .tav {
  color: #93d289;
}

.error {
  color: var(--effectColor);
}

#app > header {
  background: var(--effectColor);
  color: #fff;
}

#app > header > div {
  max-width: 920px;
  margin: auto;
  font-size: 0.8em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#app > header a {
  font-weight: 300;
}

.label-info {
  font-size: 0.8em;
  margin-top: 1em;
  opacity: 0.5;
}

textarea {
  -webkit-appearance: none;
  resize: none;
  width: 100%;
  font-size: inherit;
  font-family: monospace;
  margin: 1em 0 0;
  padding: 1em 1.5em;
  height: 100px;
  border-radius: 0.6em;
  outline: none;
  background: #292e1e;
  color: #fff;
  font-size: smaller;
  display: block;
}

.col.col-bottom {
  align-self: flex-end;
}

.btn ~ .btn {
  margin-left: 1em;
}

.btn.btn-danger {
  background: var(--effectColor);
}

.logo {
  border-bottom: 0;
}

.video {
  max-width: 100%;
  margin: auto;
  display: block;
  padding: 1em 0;
}

@media (max-width: 760px) {
  .video {
    width: 100vw;
    height: 59.464286vw;
  }
}
