/* reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

input, textarea, button, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  min-height: 100vh;
}

button {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

input, textarea, select {
  border: none;
  outline: none;
}
input:focus::placeholder, textarea:focus::placeholder, select:focus::placeholder {
  opacity: 0;
}

/* end of reset */
:root {
  --color-text: hsl(220, 30%, 45%);
  --color-text-darker: hsl(220, 30%, 35%);
  --color-bg: hsl(220, 50%, 98%);
  --color-bg-darker: hsl(220, 50%, 92%);
  --color-border: hsl(220, 30%, 55%);
  --space-xs: .25rem;
  --space-s: .5rem;
  --space-m: 1rem;
  --space-l: 2rem;
  --space-xl: 4rem;
  --space-xxl: 8rem;
  --border-radius-s: .5rem;
  --shadow-m: 0 .5rem .5rem hsla(220, 30%, 25%, .1);
  --shadow-l: 0 1rem 1rem hsla(220, 30%, 25%, .1);
  --nav-height: 4.25rem;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

main {
  flex-grow: 1;
  margin-top: var(--nav-height);
}

p, ul {
  line-height: 1.5;
  margin: 0.75em 0;
}

ul {
  margin-left: 1em;
}

h2, h3, h4 {
  margin: 1.5em 0 0.75em 0;
}

/* utility */
.container {
  max-width: 1024px;
  margin: 0 auto;
}

.icon {
  width: 2rem;
  color: var(--color-text);
}

.input {
  box-shadow: inset 0 0 0 1px var(--color-text);
  padding: var(--space-m);
  border-radius: var(--border-radius-s);
  transition: 0.25s all;
}
.input:focus {
  box-shadow: inset 0 0 0 2px var(--color-text);
}

.input-big {
  width: 100%;
  max-width: 40rem;
  display: inline-block;
  text-align: center;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px var(--color-text), var(--shadow-m);
}
.input-big:focus {
  width: 100%;
  text-align: center;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 2px var(--color-text), var(--shadow-m);
}

.button {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-m) var(--space-xl);
  border-radius: var(--border-radius-s);
  transition: 0.25s background-color;
}
.button:hover {
  background-color: var(--color-text-darker);
}

.button-big {
  display: inline-block;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px var(--color-text), var(--shadow-m);
}

.centered {
  text-align: center;
}

.section {
  padding: var(--space-xl) var(--space-l);
}

.bg-darker {
  background-color: var(--color-bg-darker);
}

.space-x > * + * {
  margin-left: var(--space-l);
}

.space-y > * + * {
  margin-top: var(--space-l);
}

.two-cols {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}
.two-cols > *:not(.illu) {
  flex-basis: 2/3;
}
@media (max-width: 850px) {
  .two-cols {
    flex-direction: column;
  }
}

.illu {
  width: 20rem;
  margin: var(--space-m) 0;
}

.h1 {
  font-size: 2rem;
}

.input-and-button {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
}
@media (max-width: 530px) {
  .input-and-button {
    flex-direction: column;
  }
}

/* navbar */
.nav {
  width: 100%;
  height: var(--nav-height);
  position: fixed;
  display: flex;
  align-items: center;
  padding-inline: var(--space-l);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
  /* navbar on smaller screens */
}
.nav > .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
}
.nav .nav-button {
  display: none;
}
.nav .nav-button-x {
  display: none;
}
.nav .nav-list {
  display: flex;
  gap: var(--space-l);
  list-style: none;
}
.nav .nav-link {
  transition: 0.25s color ease;
}
.nav .nav-link:hover, .nav .nav-link:focus {
  color: var(--color-text-darker);
}
@media (max-width: 900px) {
  .nav .nav-button {
    display: block;
  }
  .nav .nav-list {
    width: 100%;
    position: absolute;
    bottom: 0;
    flex-direction: column;
    gap: 0;
    transform: translateY(calc(100% + 1px));
    transform-origin: 0 0;
    background-color: var(--color-bg);
    margin-inline: calc(var(--space-l) * -1);
    box-shadow: var(--shadow-l);
    padding: var(--space-m) 0;
    display: none;
    animation: dropdown 0.5s;
  }
  @keyframes dropdown {
    from {
      transform: translateY(calc(100% + 1px)) scaleY(0);
    }
  }
  .nav .nav-item {
    width: 100%;
    opacity: 0;
    animation: appear 0.5s 0.5s forwards;
  }
  @keyframes appear {
    to {
      opacity: 1;
    }
  }
  .nav .nav-link {
    display: block;
    padding: var(--space-m) var(--space-l);
  }
  .nav.active .nav-list {
    display: flex;
  }
  .nav.active .nav-button-burger {
    display: none;
  }
  .nav.active .nav-button-x {
    display: block;
  }
}

/* home */
.icons-with-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-l);
}
@media (max-width: 750px) {
  .icons-with-text {
    flex-direction: column;
  }
}

.icon-with-text {
  flex-shrink: 0;
  width: 12.5rem;
  display: flex;
  align-items: center;
  gap: var(--space-s);
}
.icon-with-text svg {
  width: 4rem;
  height: 4rem;
}
.icon-with-text:nth-child(1) svg {
  padding-right: 0;
}
.icon-with-text:nth-child(2) svg {
  padding-right: 0.5rem;
}
.icon-with-text:nth-child(3) svg {
  padding-right: 0.85rem;
}

.numbers {
  display: flex;
  justify-content: space-between;
  gap: var(--space-l);
}
@media (max-width: 660px) {
  .numbers {
    flex-direction: column;
  }
}

.numbers-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  font-size: 1.25rem;
}
.numbers-item span:nth-child(2) {
  font-weight: bold;
}

.bullet-points {
  display: flex;
  justify-content: center;
  gap: var(--space-l);
}
@media (max-width: 530px) {
  .bullet-points {
    flex-direction: column;
  }
}

/* footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-l);
}

.footer-lists {
  display: flex;
  justify-content: space-evenly;
  gap: var(--space-l);
}

.footer-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.footer-list-title {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.footer-link {
  font-size: 0.75rem;
}
.footer-link:hover {
  text-decoration: underline;
}

/* results */
.loader {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--color-text);
  border-top-color: transparent;
  border-radius: 9999px;
  animation: spinner 1s linear infinite;
}
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.results {
  list-style: none;
}
.results * + * {
  margin-top: var(--space-m);
}

.results-link {
  display: block;
  border: 1px solid var(--color-text);
  border-radius: var(--border-radius-s);
  padding: var(--space-l);
  background-color: var(--color-bg);
}

.product-list {
  list-style: none;
  margin-bottom: var(--space-l);
}

.product-item label > * + * {
  margin-left: var(--space-s);
}

/*# sourceMappingURL=main.css.map */
