html,
input,
button,
textarea {
  font-family: "Lato", sans-serif;
  color: #324154;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fafafa;
  display: flex;
  justify-content: center;
  margin: 0;
}

div.container {
  display: flex;
  flex-direction: column;
  width: 960px;
}

/* HEADER */
header {
  align-items: center;
  display: flex;
  padding: 2rem 0;
  justify-content: space-between;
}

header img {
  object-fit: contain;
  border-radius: 4px;
  height: 52px;
  width: 52px;
}

header ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

header li {
  list-style: none;
}

header li a {
  color: #0ea5e9;
  font-size: 14px;
  text-decoration: none;
}

header li a:hover {
  text-decoration: underline;
}

header li:last-child a {
  background: #f04343;
  border: 1px solid #b52a2a;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  padding: 8px 1rem;
  text-decoration: none;
}

header li:last-child a:hover {
  text-decoration: none;
}

/* HERO */
section.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0;
  text-align: center;
}

section.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin: 0 auto;
  width: 640px;
}

section.hero span.red {
  color: red;
}

section.hero p {
  margin: 0 auto;
  opacity: 0.75;
  width: 640px;
}

section.hero div.cta {
  display: flex;
  gap: 1rem;
  margin: 0 auto;
}

section.hero div.cta a:first-child {
  background: #f04343;
  border: 1px solid #b52a2a;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  padding: 8px 1rem;
  text-decoration: none;
  z-index: 9;
}

section.hero div.cta a:last-child {
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 4px;
  color: #324154;
  font-size: 14px;
  padding: 8px 1rem;
  text-decoration: none;
  z-index: 9;
}

section.hero img {
  border-radius: 4px;
  border: 1px solid #dedede;
  box-shadow: 0 0 128px 0 rgba(255, 0, 0, 0.2);
  margin: 2rem 0;
}

/* COMPANIES */
section.companies {
  align-items: center;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  padding: 4rem 0;
  overflow: hidden;
}

section.companies p {
  opacity: 0.75;
}

section.companies div.company-grid {
  max-width: 1000px;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  width: 100%;
}

section.companies div.company-grid-content {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 20s linear infinite;
}

section.companies div.company-grid img {
  width: 165px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* FEATURES */
section.features {
  align-items: center;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  padding: 4rem 0;
}

section.features h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto;
}

section.features p {
  opacity: 0.75;
}

section.features div.features-grid {
  display: flex;
  gap: 1rem;
}

section.features div.features-grid div.feature {
  border: 1px solid #dedede;
  border-radius: 4px;
  background: white;
  flex: 1;
  padding: 1rem;
}

section.features button {
  background: #fad7da;
  border: none;
  /* border: 1px solid #b52a2a; */
  border-radius: 4px;
  color: #b52a2a;
  font-size: 14px;
  height: 48px;
  width: 48px;
  text-decoration: none;
}

section.features div.feature p {
  opacity: 0.75;
}

/* CONTENT */
div.content-group {
  background: white;
  border: 4px;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2rem;
}

section.content {
  align-items: center;
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
}

section.content div.content-item {
  flex: 1;
}

section.content div.content-item p {
  opacity: 0.75;
}

section.content div.content-item ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

section.content div.content-item li {
  background: #fad7da;
  border-radius: 4px;
  color: #b52a2a;
  font-size: 14px;
  list-style: none;
  padding: 1px 8px;
}

section.content div.content-image {
  display: flex;
  flex-direction: column;
  flex: 1;
}

section.content div.content-image img {
  aspect-ratio: 16/10;
  object-fit: contain;
  width: 500px;
}

/* PLANS */
section.plans {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0;
}

section.plans h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto;
}

section.plans p {
  opacity: 0.75;
  margin: 0;
}

section.plans div.plans-content {
  display: flex;
  gap: 1rem;
  padding: 2rem 0;
}

section.plans div.plan-item {
  background: white;
  border: 1px solid #dedede;
  border-radius: 4px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 1rem;
  position: relative;
  text-align: center;
}

section.plans div.plan-item-select {
  border: 2px solid #f04343 !important;
}

section.plans div.plan-item h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
}

section.plans div.plan-item p {
  margin: 0;
  opacity: 0.75;
}

section.plans span.plan-unit {
  font-size: 1.4rem;
}

section.plans span.plan-price {
  font-size: 2.4rem;
  font-weight: bold;
}

section.plans div.tag {
  align-items: center;
  background: #f04343;
  border-radius: 4px;
  color: white;
  display: flex;
  gap: 4px;
  font-size: 14px;
  left: 50%;
  margin: 0 auto;
  padding: 4px 1rem;
  position: absolute;
  top: -12px;
  transform: translateX(-50%);
  width: fit-content;
}

section.plans ul {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

section.plans li {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  list-style: none;
}

section.plans li s {
  opacity: 0.4;
}

section.plans button {
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 4px;
  color: #324154;
  cursor: pointer;
  font-size: 14px;
  margin-top: 1.6rem;
  padding: 8px 1rem;
  text-decoration: none;
}

section.plans button.select {
  background: #f04343;
  border: 1px solid #b52a2a;
  color: white;
}

/* FAQ */
section.faq {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0;
}

section.faq h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto;
}

section.faq p {
  opacity: 0.75;
  margin: 0;
}

section.faq div.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

section.faq details {
  background: white;
  border: 1px solid #dedede;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

section.faq details[open] {
  border: 1px solid #f04343 !important;
  gap: 1rem;
}

section.faq summary {
  cursor: pointer;
  align-items: center;
  display: flex;
  list-style: none;
}

section.faq summary span {
  flex: 1;
}

section.faq details[open] summary span {
  color: #f04343 !important;
  fill: #f04343 !important;
}

section.faq details p {
  margin: 0;
  padding: 0;
  text-align: justify;
}

/* FOOTER */
footer {
  background: white;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 4rem 2rem;
}

footer h4 {
  font-size: 1.2rem;
  padding: 0;
  margin: 0;
}

footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

footer li {
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li a {
  color: #0ea5e9;
  text-decoration: none;
}

footer li a:hover {
  text-decoration: underline;
}

footer div.footer-grid {
  display: flex;
  gap: 1rem;
}

footer div.col {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
}

footer p {
  font-size: 14px;
  opacity: 0.75;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  header ul li:last-child {
    display: none;
  }

  div.container {
    width: 90%;
  }

  section.hero h1,
  section.hero p {
    width: 100%;
    font-size: 2.4rem;
  }

  section.hero div.cta {
    flex-direction: column;
    gap: 0.5rem;
  }

  section.companies div.company-grid-content {
    gap: 2rem;
  }

  section.features div.features-grid {
    flex-direction: column;
    gap: 2rem;
  }

  section.content {
    flex-direction: column;
    gap: 2rem;
  }

  section.content div.content-image img {
    width: 100%;
  }

  section.plans div.plans-content {
    flex-direction: column;
    gap: 2rem;
  }

  footer div.footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section.hero h1 {
    font-size: 2rem;
  }

  section.hero p {
    font-size: 0.95rem;
  }

  header ul {
    gap: 1rem;
  }

  header li:last-child a {
    padding: 6px 0.8rem;
    font-size: 13px;
  }

  section.features button {
    width: 40px;
    height: 40px;
  }

  section.plans div.plan-item h3 {
    font-size: 1.4rem;
  }

  section.plans span.plan-price {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  section.hero h1 {
    font-size: 1.6rem;
  }

  section.hero p {
    font-size: 0.85rem;
  }

  section.hero div.cta a {
    /* width: 100%; */
    text-align: center;
  }

  section.plans div.plan-item {
    padding: 2rem 1rem;
  }

  section.content div.content-item ul {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  section.content div.content-item li {
    font-size: 12px;
    padding: 1px 6px;
  }
}
