
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sulphur+Point:wght@300;400;700&display=swap');

:root {
  --color-bg1: #262626;
  --color-bg2: #3A3A3A;
  --color-bg3: #585858;
  --color-main-1: #4CC7AA;
  --color-main-2: #249993;
  --color-premium: #8D9116;
}

@keyframes background-gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

html {
  font-size: 20px;
}

body {
  background: var(--color-bg1);
  font-size: 16px;
  color: white;
  font-family: 'Noto Sans', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

h1 {
  font-weight: 200;
  font-size: 2.2em;
  padding: 10px 0;
  margin: 0;
}

h2 {
  font-weight: 500;
  font-size: 1.5em;
  padding: 10px 0;
  margin: 0;
}

h3 {
  font-weight: 500;
  font-size: 1.2em;
  padding: 10px 0;
  margin: 0;
}

a {
  color: inherit;
}

p {
  letter-spacing: 0.5px;
  font-weight: 300;
  margin: 8px 0;
}

iframe {
  width: 100%;
  height: 600px;
  max-height: 80vh;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 10;
  pointer-events: none;
}

.button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid white;
  outline: 0;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Noto Sans', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  margin: 0;
  display: inline-block;
  &:hover {
    background: rgba(255,255,255,0.1);
  }
}

.wrapper {
  width: 100%;
  transform: perspective(30cm);
  transform-style: preserve-3d;
  text-align: center;
  transform-origin: 50% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.moving-background {
	background: linear-gradient(-60deg, var(--color-premium), var(--color-main-1), var(--color-main-2));
  background-attachment: fixed;
	background-size: 200% 100%;
  background-repeat: no-repeat;
	animation: background-gradient 15s ease infinite;
  color: white;
	width: 100%;
}

.spacer {
  flex-grow: 1;
}

.section {
  padding: 20px calc((100vw - 980px) / 2) 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  &.header {
    padding: 10px 20px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    & img {
      height: 60px;
    }
  }
  &.fixed-height {
    height: 70vh;
  }
  &.left {
    padding-right: calc(max(100vw - 980px, 0px) / 2 + min(50vw, 490px));
  }
  &.right {
    padding-left: calc(max(100vw - 980px, 0px) / 2 + min(50vw, 490px));
  }
  &.black-pattern {
    color: white;
    background-color: var(--color-bg1);
    background-image: repeating-linear-gradient(45deg,
        transparent,
        transparent 20px,
        color-mix(in srgb, var(--color-bg1), white 2%) 21px,
        color-mix(in srgb, var(--color-bg1), white 2%) 39px,
        transparent 40px),
      repeating-linear-gradient(-45deg,
        var(--color-bg1),
        var(--color-bg1) 20px,
        color-mix(in srgb, var(--color-bg1), white 2%) 21px,
        color-mix(in srgb, var(--color-bg1), white 2%) 39px,
        var(--color-bg1) 40px);
  }
  &.grey {
    color: white;
    background-color: var(--color-bg2);
  }
  &.grey-pattern {
    --color: #e6e6e6;
    background-color: white;
    background-image: repeating-linear-gradient(75deg,
        transparent,
        transparent 20px,
        color-mix(in srgb, var(--color), black 2%) 21px,
        color-mix(in srgb, var(--color), black 2%) 39px,
        transparent 40px),
      repeating-linear-gradient(-15deg,
        var(--color),
        var(--color) 20px,
        color-mix(in srgb, var(--color), black 2%) 21px,
        color-mix(in srgb, var(--color), black 2%) 39px,
        var(--color) 40px);
    color: black;
  }
  &.call-to-action {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 20px;
	  background: linear-gradient(30deg, var(--color-main-1), var(--color-main-2));
    color: white;
    text-align: center;
    font-size: 24px;
    span {
      font-size: 36px;
      font-family: "Sulphur Point", sans-serif;
      word-spacing: -10px;
    }
  }
  &.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    & .dialog {
      margin: 0;
      padding: 8px 12px;
      & h2 {
        font-size: 1.2em;
        background: none;
        text-align: left;
        margin: 0;
        padding: 6px 0;
      }
      & img {
        height: 32px;
        vertical-align: middle;
        margin-right: 8px;
      }
    }
  }
  &.black {
    background-color: var(--color-bg1);
    color: white;
  }
  &.white {
    background: #f2f2f2;
    color: black;
  }
  &.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    color: rgba(255,255,255,0.5);
    align-items: start;
    font-size: 14px;

    & img {
      height: 50px;
    }
    & ul {
      margin: 0;
      padding-left: 0px;
      list-style-type: none;
    }
    & li {
      margin: 5px 0;
    }
    & a {
      font-family: 'Noto Sans', sans-serif;
      text-decoration: none;
      text-transform: uppercase;
      &:hover {
        color: white;
      }
    }
  }
}

.dialog {
  display: flex;
  background: var(--color-bg2);
  border-radius: 20px;
  flex-direction: column;
  overflow: hidden;
  margin: 20px 0;
  padding: 10px 20px;
  & > .dialog-header {
    margin: -10px -20px 10px;
    background: var(--color-bg3);
    text-align: center;
  }
}

.landing {
  display: flex;
  & > div {
    border-radius: 20px;
    padding: 20px;
    background: #00000038;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 3px #00000073 inset;
  }
  & h1 {
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 3px #ffffff73 inset, 0 0 5px #00000040;
    color: #ffffffc4;
    font-size: 2em;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.04);
      & b {
  background-image: linear-gradient(#bde33d, white);
  background-clip: text;
  color: transparent;
    }
}
  & h2 {
    background-image: linear-gradient(15deg, #47FFD4, #E4EA35);
    border-bottom: 2px solid rgba(255,255,255,0.8);
    color: rgba(255,255,255,0);
    background-clip: text;
    font-size: 2em;
    margin-bottom: 12px;
  }
  & ul {
    list-style-type: square;
    padding-left: 20px;
  }
  & p, & li {
    font-size: 1.1em;
    text-indent: 0px;
  }
  &.white, &.grey-pattern {
    & > div {
      background: #ffffff38;
    }
    & h2 {
      background-image: linear-gradient(15deg, #008364, #A8AE00);
      border-bottom: 2px solid rgba(0,0,0,0.2);
    }
  }
}

.pricing {
  align-self: center;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  text-align: center;
  width: 100%;
  align-items: stretch;
  margin: 10px 0;
  & > h3 {
    margin: 0 10px;
    background-color: #00000026;
    border-radius: 20px 20px 0 0;
    padding: 6px;
    font-size: 20px;
    word-spacing: -4px;
    line-height: 100%;
    &.edro-free {
      font-family: 'Sulphur Point', sans-serif;
      border: 2px dashed var(--color-main-2);
    }
    &.edro-pro {
      font-family: 'Sulphur Point', sans-serif;
      border: 2px solid var(--color-main-1);
      background: var(--color-main-2);
      color: white;
    }
  }
  & > div {
    margin: 0 10px;
  }
  & > div:nth-child(3n + 1) {
    text-align: right;
    border-bottom: 1px solid #00000026;
  }
  & > div:nth-child(3n + 2) {
    background-color: #00000026;
    border-bottom: 1px solid #00000026;
  }
  & > div:nth-child(3n + 3) {
    background-color: #00000026;
    border-bottom: 1px solid #00000026;
  }
  & p {
    padding: 10px 0;
  }
  & .bottom {
    border-radius: 0 0 20px 20px;
  }
  & .plan-free {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  & .plan-pro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(120deg, var(--color-main-1), var(--color-premium));
    & .plan-pro-choices {
      display: grid;
      grid-template-columns: 1fr 1px 1fr;
      text-align: center;
      width: 100%;
      align-items: stretch;
    }
  }
  & .bar {
    width: 1px;
    background: rgba(255,255,255,0.8);
    margin: 12px 0;
  }
  & .plan-pro-promotion-tag p {
    display: inline-block;
    border-radius: 10px;
    border: 2px solid var(--color-main-1);
    background: var(--color-main-2);
    color: white;
    padding: 3px 8px;
    font-weight: 500;
  }
  & .price-unit-crossed {
    text-decoration: line-through;
    font-size: 22px;
    font-weight: bold;
    color: rgba(255,255,255,0.4);
    vertical-align: top;
    display: inline-block;
    transform: rotate(-10deg);
  }
  & .price-unit {
    font-size: 2em;
    font-weight: bold;
  }
}

.show-on-small-screen-only {
  display: none;
}

@media (max-width: 1000px) {

  .show-on-small-screen-only {
    display: block;
  }

  .hide-on-small-screen {
    display: none;
  }

  html {
    font-size: 16px;
  }
  
  .landing {
    & h1 {
      font-size: 1.2em;
      padding: 8px;
      border-radius: 8px;
    }
    & h2 {
      font-size: 1.0em;
      padding: 2px 0;
      margin: 0;
    }
    & ul {
      margin: 2px 0;
    }
    & p, & li {
      font-size: 0.9em;
    }
    & > div {
      padding: 4px 8px;
      border-radius: 8px;
    }
  }
  
  .section {
    &.header {
      padding: 10px 5px;
      gap: 2px;
      & img {
        height: 30px;
      }
    }
    &.fixed-height {
      height: 40vh;
    }
    &.call-to-action {
      font-size: 1.2em;
    }
    &.features {
      grid-template-columns: 1fr;
    }
    &.footer {
      grid-template-columns: 1fr;
      padding: 0 8px;
    }
  }
  
  .button {
    font-size: 14px;
    padding: 3px 5px;
  }
  
  .dialog {
    margin: 5px 0;
    padding: 5px;
  }
  
  .pricing {
    font-size: 0.8em;
    
    & > h3 {
      margin: 0 2px;
    }
    & > div {
      margin: 0 2px;
    }
    & p {
      padding: 0;
    }
  }
}
