@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import './reset.css';
@import './vars.css';
@import './utils.css';

/* GLOBAL */
body {
  background-color: var(--body-color);
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
}
.page {
  display: grid;
  grid-template-rows: min-content 1fr min-content;
}
.full-width {
  width: 100%;
}
.page-width {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.docs-page {
  max-width: 65ch;
  width: 100%;
  margin: 4rem auto 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.docs-page h2 {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.docs-page h3 {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.docs-page h4 {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.docs-page .time {
  margin-bottom: 1rem;
}

.docs-page p {
  line-height: 1.5rem;
  margin-bottom: 1rem;
}

.section-margin {
  margin-top: 6.875rem;
}
.section-heading {
  font-size: 1.25rem;
  font-weight: 500;
}
.section-heading--smaller {
  font-size: 0.875rem;
  font-weight: 400;
}

/* HEADER */
.header {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  display: flex;
  align-items: center;
}
.logo__svg {
  height: 24px;
}
.logo__text {
  margin-left: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
}

/* HERO */
.hero {
  margin-top: 4rem;
}
.hero__text {
  font-size: 1.875rem;
  font-weight: 700;
}
.hero__text--smaller {
  font-size: 1.25rem;
}
.hero__paragraph {
  font-size: 0.875rem;
  line-height: 130%;
  margin-top: 2rem;
  max-width: 40ch;
}
.hero__button {
  margin-top: 2rem;
}
.hero__image {
  display: none;
}

/* FEAUTURES */
.features {
  margin-top: 3.75rem;
  display: grid;
  grid-template-rows: min-content min-content;
}
.features__heading {
  font-size: 1.25rem;
  font-weight: 500;
}
.features__heading--smaller {
  font-size: 0.875rem;
  font-weight: 400;
}
.features__list {
  margin-top: 3.5rem;
  display: grid;
  grid-template-rows: repeat(4, min-content);
}
.feature {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 6px;
  grid-template-rows: 36px min-content;
  row-gap: 24px;
}
.feature__icon {
  display: grid;
  place-items: center;
  color: var(--text-color-inverse);
  background-color: var(--grey-400);
  border-radius: var(--border-radius);
}
.dark-theme .feature__icon {
  background-color: var(--grey-800);
}
.feature__label {
  border-radius: var(--border-radius);
  background-color: var(--grey-800);
  display: grid;
  align-content: center;
  padding: 0 11px;
  font-weight: 500;
}
.dark-theme .feature__label {
  background-color: var(--grey-400);
}
.feature__description {
  grid-column-start: 1;
  grid-column-end: 3;
}

/* THE WHY */
.the-why {
  display: grid;
  grid-template-rows: repeat(2, min-content);
  row-gap: 3.875rem;
}
.the-why__heading {
  display: block;
}
.the-why__text {
  margin-top: 2.25rem;
  max-width: 70ch;
}
.the-why__illustration {
  display: none;
}

/* CTA */
.cta {
  display: grid;
  place-items: center;
}

/* CONTACT */
.contact {
  display: grid;
  place-items: center;
}
.contact-paragraph {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.contact-email {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

.footer {
  display: grid;
  grid-template-columns: 1fr min-content;
  align-items: end;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.875rem;
}
.footer__logo {
  font-weight: 500;
}
.footer__logo svg {
  margin-right: 0.5rem;
}
.footer__menu a {
  white-space: nowrap;
  font-weight: 500;
}
.footer__menu li + li {
  margin-top: 0.75rem;
}
.footer__copyright {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: var(--grey-600);
  font-weight: 500;
}

/* COMPONENTS */
.button {
  border-radius: var(--border-radius);
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}
.button:focus {
  border-radius: var(--border-radius);
  box-shadow: 0 0 0 2px var(--body-color), 0 0 0 4px var(--primary);
}
.button--icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
}
.button--primary {
  background-color: var(--primary);
  color: var(--text-color-inverse);
}
.button--primary:hover {
  background-color: var(--primary-faded);
}
.button--gradient {
  background: linear-gradient(
    30.33deg,
    var(--purple) 8.3%,
    var(--turquoise) 92.99%
  );
  background-size: 100%;
}
.button--gradient:hover {
  background-size: 200%;
}
.button--text {
}

.button--text:hover {
  background-color: var(--grey-200);
}
.button--lg {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 1rem;
}
.button--xl {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 1rem 1.25rem;
}

.link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.link:hover,
.link:focus {
  text-decoration: underline;
}

.link__mail {
  unicode-bidi: bidi-override;
  direction: rtl;
}

.theme-icon {
  display: none;
}
.light-theme .theme-icon.theme-icon--light {
  display: block;
}
.dark-theme .theme-icon.theme-icon--dark {
  display: block;
  color: var(--yellow);
}

.card {
  display: grid;
  grid-template-rows: repeat(min-content);
  row-gap: 1.75rem;
  width: 100%;
  max-width: 1000px;
  background-color: var(--grey-400);
  border-radius: var(--border-radius);
  padding: 1.5rem 2.25rem;
  color: var(--text-color-inverse);
}
.dark-theme .card {
  color: var(--text-color);
}
.card__heading {
  font-size: 1.25rem;
  font-weight: 500;
}
.card__body {
  margin-top: 1.5rem;
}
.card__actions {
  display: grid;
  grid-template-columns: repeat(2, min-content);
  column-gap: 1rem;
}

.time {
  display: inline-block;
  color: var(--grey-600);
  border: 1px solid var(--grey-600);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  padding: 0.25rem;
}

.page-header {
  font-size: 1.5rem;
  display: block;
}
.section-header {
  font-size: 1.25rem;
  display: block;
}
.sub-section-header {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.badge {
  display: inline-block;
  color: var(--text-color-inverse);
  background-color: var(--primary);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  padding: 0 0.25rem;
}

@media (min-width: 639px) {
  .section-heading {
    font-size: 1.5rem;
  }
  .section-heading--smaller {
    font-size: 1rem;
  }
  .section-margin {
    margin-top: 13.5rem;
  }

  .logo__svg {
    height: 28px;
  }
  .logo__text {
    font-size: 1.25rem;
  }
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
  .hero__image {
    justify-self: center;
    display: block;
    width: 100%;
    max-width: 260px;
  }
  .hero__text {
    font-size: 2.25rem;
    font-weight: 700;
  }

  .hero__text--smaller {
    font-size: 1.5rem;
  }

  .hero__paragraph {
    font-size: 1rem;
  }

  .features {
    justify-content: center;
  }
  .features__heading {
    text-align: center;
  }
  .features__list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .feature {
    max-width: 235px;
  }

  .the-why {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    column-gap: 3rem;
    align-items: center;
  }
  .the-why__illustration {
    display: block;
    justify-self: center;
    width: 330px;
  }

  .contact-paragraph {
    font-size: 1rem;
  }
  .contact-email {
    font-size: 1.5rem;
  }

  .footer__menu ul {
    white-space: nowrap;
  }
  .footer__menu li {
    display: inline-block;
  }
  .footer__menu li + li {
    margin-top: 0;
    margin-left: 1rem;
  }

  .button--lg {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }
  .button--xl {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
  }
  .card {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr min-content;
    align-items: center;
    column-gap: 1.75rem;
  }
  .card__heading {
    font-size: 1.25rem;
  }
}

@media (min-width: 785px) {
  .page-width {
    padding-left: 40px;
    padding-right: 40px;
  }

  .section-heading {
    font-size: 2.25rem;
  }
  .section-heading--smaller {
    font-size: 1.25rem;
  }

  .hero__image {
    max-width: 460px;
  }

  .the-why__illustration {
    width: 430px;
  }

  .card {
    column-gap: 2.25rem;
  }
  .card__heading {
    font-size: 1.5rem;
  }

  .contact-email {
    font-size: 2.25rem;
  }
}

@media (min-width: 1023px) {
  .hero__text {
    font-size: 4rem;
    font-weight: 700;
  }
  .hero__text--smaller {
    font-size: 3rem;
  }

  .features__list {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: none;
    column-gap: 2rem;
  }

  .the-why__illustration {
    width: 530px;
  }

  .button--lg {
    padding: 1rem 2rem;
  }
  .button--xl {
    font-size: 1.25rem;
    padding: 1.25rem 2rem;
  }

  .card {
    column-gap: 3.825rem;
  }
}

@media (min-width: 1279px) {
  .features__list {
    column-gap: 3rem;
  }
}
