@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Rubik:wght@400;500&display=swap");

/* ===========================
   RESET & BASE STYLES
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 400;
  line-height: 130%;
}

body {
  background-color: #ffffff;
  color: black;
  font-family: "Rubik", sans-serif;
  overflow-x: hidden;
}

input,
button,
textarea,
select {
  margin: 0;
  padding: 0;
  font: inherit;
  color: #000;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.u-hidden {
  display: none !important;
}

.u-overflow-hidden {
  overflow: hidden;
}

/* ===========================
   PAGE BLOCK
   =========================== */

#container {
  margin: 0 auto;
}

.page--overlay::after {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.85);
}

.page__content {
  padding: 40px;
  padding-top: 0;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===========================
   HERO BLOCK
   =========================== */

.hero {
  color: #ffffff;
  min-height: 80vh;
  padding: 40px;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: url(../img/hero-bg.jpg), linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  position: relative;
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero__header {
  width: 100%;
  display: flex;
}

.hero__logo {
  margin: auto;
  max-height: 8.5vh;
}

.hero__title {
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  text-transform: capitalize;
  font-weight: 800;
  line-height: 1.2em;
  max-width: 900px;
}

.hero__title-accent {
  color: #E0013F;
  font-weight: 800;
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  max-width: 900px;
}

.hero__cta-button {
  background-color: #E0013F;
  color: #ffffff;
  font-size: 19px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  padding: 16px 80px;
}

/* ===========================
   ABOUT-US BLOCK
   =========================== */

.about-us {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-us__title {
  text-align: center;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  font-size: 35px;
  color: black;
}

.about-us__title::before {
  content: "✦";
  margin-right: 10px;
  color: #E0013F;
}

.about-us__title::after {
  content: "✦";
  margin-left: 10px;
  color: #E0013F;
}

.about-us__description {
  font-size: 14px;
  text-align: center;
  color: var(--seasalt-color);
}

.about-us__banner {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
}

.about-us__banner-item {
  flex-basis: 25%;
  width: 100%;
  display: flex;
}

.about-us__banner-image {
  width: 100%;
}

/* ===========================
   FEATURES BLOCK
   =========================== */

.features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.features__title {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 35px;
  font-weight: 800;
}

.features__title::before {
  content: "✦";
  margin-right: 10px;
  color: #E0013F;
}

.features__title::after {
  content: "✦";
  margin-left: 10px;
  color: #E0013F;
}

.features__description {
  text-align: center;
  color: var(--seasalt-color);
  font-size: 14px;
}

.features__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* ===========================
   FEATURE BLOCK (nested in features)
   =========================== */

.feature {
  background-color: #E0013F;
  padding: 32px 16px;
  border-radius: 16px;
  flex-basis: calc((100% - 60px) / 3);
  justify-self: stretch;
  align-self: stretch;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: stretch;
  position: relative;
  gap: 10px;
}

.feature__icon {
  height: 30px;
}

.feature__icon-image {
  height: 100%;
}

.feature__title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #ffffff;
}

.feature__title::before {
  content: "✦";
  margin-right: 10px;
  color: #ffffff;
}

.feature__description {
  font-size: 13px;
  color: var(--seasalt-color);
  opacity: 0.9;
}

/* ===========================
   TESTIMONIALS BLOCK
   =========================== */

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonials__title {
  text-align: center;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  font-size: 35px;
  color: black;
}

.testimonials__title::before {
  content: "✦";
  margin-right: 10px;
  color: #E0013F;
}

.testimonials__title::after {
  content: "✦";
  margin-left: 10px;
  color: #E0013F;
}

.testimonials__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===========================
   TESTIMONIAL BLOCK (nested in testimonials)
   =========================== */

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  align-self: stretch;
  flex-basis: calc(33.3% - 11px);
  background-color: white;
  padding: 40px;
  border-radius: 6px;
  border: 2px solid rgb(244, 244, 244);
  gap: 8px;
}

.testimonial__name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: black;
}

.testimonial__rating {
  display: flex;
  gap: 2px;
  align-self: center;
}

.testimonial__star {
  height: 20px;
  width: 20px;
  background: url(../img/star_24dp_FILL0_wght400_GRAD0_opsz24.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
}

.testimonial__content {
  margin: 0;
  font-size: 13px;
}

/* ===========================
   PRICING BLOCK
   =========================== */

.pricing {
  padding: 40px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing__title {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: black;
}

.pricing__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing__item {
  color: var(--regular-text-color);
  font-size: 14px;
}

.pricing__text::before {
  content: "✦";
  margin-right: 2px;
  color: #E0013F;
}

.pricing__text-highlight {
  font-weight: 700;
}

/* ===========================
   UNSUBSCRIBE BLOCK
   =========================== */

.unsubscribe {
  padding: 40px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.unsubscribe__title {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  color: black;
  font-weight: 800;
}

.unsubscribe__step {
  color: var(--regular-text-color);
  font-size: 14px;
}

.unsubscribe__step::before {
  content: "✦";
  margin-right: 2px;
  color: #E0013F;
}

/* ===========================
   POPUP BLOCK
   =========================== */

/* popup */

.overlay::before {
  content: "";
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(27, 27, 27, 0.8);
  z-index: 9999;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 1000px;
  height: auto;
  box-sizing: border-box;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  z-index: 99999;
  overflow: hidden;
  text-align: left;
  scrollbar-width: 0;
}

.popup::-webkit-scrollbar {
  width: 0;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 25px;
  width: 25px;
  cursor: pointer;
  border: 2px solid #000000;
  background: #ffffff;
  border-radius: 50%;
  z-index: 1;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 16px;
  background: #000000;
}

.close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.popup-content {
  width: 100%;
  max-height: 60vh;
  overflow: auto;
  scrollbar-width: none;
  color: #000000;
}

.popup-content h1,
.popup-content h2,
.popup-content h3,
.popup-content h4,
.popup-content h5,
.popup-content h6 {
  color: #000000;
  font-weight: 700;
  line-height: 130%;
  text-align: left;
  font-size: 14px;
}

.popup-content a {
  text-decoration: underline;
  color: #000000;
}

.popup-content p {
  font-size: 12px;
  text-align: left;
}

@media only screen and (max-width: 480px) and (orientation: portrait) {
  .popup-content {
    max-height: 70vh;
  }
}

.popup-content>* {
  margin: 0 0 20px;
}

.popup-content>*:last-child {
  margin: 0;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  border-radius: 10px;
  background-color: white;
  color: #000;
  -webkit-transform: translate3d(-50%, -50%, 0) !important;
  transform: translate3d(-50%, -50%, 0) !important;
}

.popup--get-started {
  max-width: 480px;
}

.popup__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.popup__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  background: transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iIzAwMDAwMCIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxwYXRoIGQ9Ik0xNjUuNjYsMTAxLjY2LDEzOS4zMSwxMjhsMjYuMzUsMjYuMzRhOCw4LDAsMCwxLTExLjMyLDExLjMyTDEyOCwxMzkuMzFsLTI2LjM0LDI2LjM1YTgsOCwwLDAsMSwtMTEuMzItMTEuMzJMMTE2LjY5LDEyOCw5MC4zNCwxMDEuNjZhOCw4LDAsMCwxLDExLjMyLTExLjMyTDEyOCwxMTYuNjlsMjYuMzQtMjYuMzVhOCw4LDAsMCwxLDExLjMyLDExLjMyWk0yMzIsMTI4QTEwNCwxMDQsMCwxLDEsMTI4LDI0LDEwNC4xMSwxMDQuMTEsMCwwLDEsMjMyLDEyOFptLTE2LDBhODgsODgsMCwxLDAtODgsODhBODguMSw4OC4xLDAsMCwwLDIxNiwxMjhaIj48L3BhdGg+PC9zdmc+") no-repeat center / contain;
  cursor: pointer;
}

.popup__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 80vh;
  overflow-y: auto;
}

.popup__title {
  font-size: 24px;
  font-weight: 600;
  text-align: left;
}

.popup__description {
  /* Container for description text */
}

.popup__description-text {
  font-size: 14px;
}

/* ===========================
   FORM BLOCK
   =========================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form--get-started {
  /* Modifier for get-started specific styles if needed */
}

.form__field {
  width: 100%;
  height: 60px;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #333333;
  display: flex;
  gap: 10px;
  position: relative;
  direction: ltr !important;
}

.form__input {
  flex-grow: 1;
  direction: ltr !important;
  width: 100%;
}

.form__input::placeholder {
  color: black;
}

.form__submit {
  background-color: #E0013F;
  color: #ffffff;
  font-size: 19px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  padding: 16px 80px;
}

.form__message {
  display: none;
}

.form__message--error {
  color: red;
}

.form__message-text {
  margin: 0;
}

.form__success {
  display: none;
  margin: 0 auto;
  text-align: center;
  color: #4caf50;
  padding: 30px 0;
  background: #fff;
}

.form__success-text {
  font-size: 14px;
  padding: 0;
  color: #333;
  font-weight: 600;
  margin: 0;
}

/* ===========================
   SUCCESS-CHECKMARK BLOCK
   =========================== */

.success-checkmark {
  width: 80px;
  height: 115px;
  margin: 0 auto;
}

.success-checkmark__icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}

.success-checkmark__icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark__icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.success-checkmark__icon::before,
.success-checkmark__icon::after {
  content: "";
  height: 100px;
  position: absolute;
  background: #fff;
  transform: rotate(-45deg);
}

.success-checkmark__line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark__line--tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark__line--long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark__circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
}

.success-checkmark__fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: #fff;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes rotate-circle {
  0% {
    transform: rotate(-45deg);
  }

  5% {
    transform: rotate(-45deg);
  }

  12% {
    transform: rotate(-405deg);
  }

  100% {
    transform: rotate(-405deg);
  }
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    left: -8px;
    width: 50px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

/* ===========================
   MEDIA QUERIES
   =========================== */

@media screen and (max-width: 630px) {
  .testimonials__grid {
    flex-direction: column;
    gap: 20px;
  }

  .about-us__banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media screen and (max-width: 800px) {
  .features__grid {
    flex-direction: column;
  }

  .feature {
    flex-basis: 100%;
  }
}

@media screen and (max-width: 890px) {
  .testimonial {
    padding: 32px 16px;
  }
}

@media screen and (max-width: 450px) {

  /* Pseudo Decorations */
  .about-us__title::before,
  .features__title::before,
  .testimonials__title::before {
    content: "✦";
    margin-right: 10px;
    color: #E0013F;
  }

  .about-us__title::after,
  .features__title::after,
  .testimonials__title::after {
    display: none;
  }

  .page__content {
    padding: 16px;
    gap: 20px;
  }

  .hero {
    padding: 16px;
    min-height: 60vh;
    gap: 20px;
  }

  .hero__logo {
    max-height: 5.5vh;
  }

  .hero__title {
    font-size: 27px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__cta-button {
    font-size: 16px;
  }

  .about-us__title,
  .features__title,
  .testimonials__title {
    font-size: 22px;
  }

  .about-us__description,
  .features__description {
    font-size: 13px;
  }

  .pricing__title,
  .unsubscribe__title {
    font-size: 19px;
  }
}

/* Very small screens */
@media screen and (max-width: 335px) {
  .hero__title {
    font-size: 21px;
  }

  .hero__cta-button {
    font-size: 11px;
  }
}

@media screen and (max-width: 450px) and (orientation: portrait) {
  .hero {
    /* Remove Parent Padding from top in mobile phones */
    margin-top: -16px;
  }
}

@media only screen and (max-width: 1000px) and (orientation: landscape) {
  .popup {
    max-width: calc(100% - 40px);
  }

  .popup--get-started {
    max-width: calc(100% - 40px);
  }
}

@media only screen and (orientation: portrait) {
  .popup {
    max-width: calc(100% - 40px);
  }

  .popup--get-started {
    max-width: calc(100% - 40px);
  }
}

.footer__text {
  font-size: 14px;
  color: grey;
}

.footer {
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  align-items: center;
}

.footer__links {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  justify-content: center;
}

.footer__links a {
  color: grey;

}