body {
  font-family: "Outfit", sans-serif;
  margin: 0px;
  --black: #051127;

  --padding-clamp: clamp(3.5rem, 8.15vw, 20rem);

  box-sizing: border-box;

  width: 100%;

  overflow-x: hidden;
}

/* mudar o estilo do texto selecionado */
::selection {
  background: #b8dcfaf4;
  color: #051127;
  text-shadow: none;
  padding: 2px 0px;

  border-radius: 4px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  box-shadow: #0000001a 0 0 15px;
  z-index: 1000;

  /* animação de slide */
  transition: transform 0.3s ease;
  transform: translateY(0);
}

nav.hidden {
  transform: translateY(-100%);
}

nav:hover {
  transform: translateY(0);
}

.section,
section {
  margin: 32px 32px 64px 32px;
  border-radius: 8px;
}

button,
a.button {
  background-color: var(--black);
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: clamp(0.6rem, 1.25vw, 1rem);
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;

  user-select: none;

  text-wrap: nowrap;
  transition: transform 0.2s, background-color 0.3s, color 0.3s;
}

button:hover,
a.button:hover {
  transform: translateY(-2px);
}

/*white background for buttons*/
button[white],
a.button[white] {
  background-color: white;
  color: var(--black);
}

button.outline,
a.button.outline {
  background-color: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

button.text,
a.button.text {
  background-color: transparent;
  color: var(--black);
}

button.outline:hover,
button.text:hover,
a.button.outline:hover,
a.button.text:hover {
  background-color: var(--black);
  transform: translateY(-2px);

  color: white;
}

a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: clamp(0.75rem, 1.25vw, 1rem);
  transition: color 0.3s ease-in-out;

  cursor: pointer;
  user-select: none;
  text-wrap: nowrap;

  transition: transform 0.2s;
}

a:hover {
  transform: translateY(-2px);
}

.highlight {
  background: #b8dcfa;
  border-radius: 16px;
  position: relative;
  padding: 1px 0px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--padding-clamp);
  text-align: center;

  gap: 32px;

  margin-top: 128px;

  background: linear-gradient(117deg, #ffe6a5, #ffa5a5);
}

.hero .flashcard {
  background-color: white;
  border-radius: 16px;
  padding: 16px 32px 32px 32px;
  box-shadow: 0 4px 4px #0000001a;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2rem);
  font-weight: 500;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: black;
}

.features {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;
  color: white;
  padding: 32px;
  background-color: #fad4b8;

  overflow: hidden;
}

.features p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: #051127;
  max-height: 300px;
  margin: 0;
}

.features h2 {
  font-size: clamp(1.4rem, 5vw, 1.4rem);
  font-weight: 500;
  color: #051127;
  margin: 0;
}

.features ul {
  padding: 0;
  margin-top: 8px;
}

.features li {
  display: flex;
  flex-direction: column;

  list-style-type: none;
  padding: 16px;
  gap: 8px;

  background-color: #fce1c7;

  border-radius: 16px;
  border: 2px dashed black;
  margin-bottom: 16px;

  cursor: pointer;

  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out,
    border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.features .active {
  background-color: #f7dfa1;
  border: 2px solid black;
}

.features li:hover {
  background-color: #fae9b8;
  border: 2px dashed black;
}

.features li h4 {
  font-size: clamp(1rem, 2vw, 1rem);
  font-weight: 500;
  color: #051127;
  margin: 0;
}

.features li p {
  font-size: clamp(0.8rem, 2vw, 0.8rem);
  font-weight: 400;
  color: #0a1f46;
  opacity: 0.9;
  margin: 0;
}

.features li i {
  color: #051127;
  margin-right: 16px;
}

.features img {
  max-width: 40%;
  border: 2px solid var(--black);
  box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.25);
  border-radius: 8px;

  transition: transform 0.3s ease-in-out, border 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.features img:hover {
  transform: translateY(-8px);
}

section.testimonials {
  background-color: #c7e7fc;
  padding: 64px 32px;
}

.testimonial-card {
  background-color: white;
  border-radius: 16px;
  padding: 16px 32px 32px 32px;
  box-shadow: 0 4px 4px #0000001a;
  gap: 16px;
}

.faq {
  background-color: #f8b8a7;
  padding: 64px 32px;
}

.faq .faq-item {
  background-color: #fbfbfb;
  border-radius: 16px;
  padding: 16px 32px;
  margin-bottom: 16px;
  border: 2px solid black;
}

.faq .faq-item summary{
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.faq .faq-item div{
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Seus marcadores animados já configurados */
summary::marker {
  font-family: fontawesome;
  content: "\f101";
  transition: transform 0.3s ease-in-out;
}
summary[open]::marker {
  font-family: fontawesome;
  content: "\f106";
  transform: rotate(180deg);
}

/* === A MAGIC: animação do conteúdo === */
.faq .faq-item .faq-content {
  max-height: 0; /* fecha */
  overflow: hidden; /* esconde o que ultrapassar */
  transition: max-height 0.4s ease; /* animação */
}

/* Quando o <details> estiver aberto, aumenta o max-height */
.faq .faq-item[open] .faq-content {
  max-height: 500px; /* valor suficiente para seu conteúdo */
}

.hide {
  opacity: 0;
  transition: all 1s ease-in-out;
  transform: translate(0, 50px);
  filter: blur(2px);
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translate(0);
}

footer {
  padding: 16px 32px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0e0e0;
}

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

  .section, section {
    margin: 16px 16px 32px 16px;
    padding: 16px;
  }

  .hero {
    padding: 16px;
    margin-top: 96px;
  }

  section .features{
    flex-direction: row;
    padding: 16px;
  }

  .features > div{
    max-width: 100% !important;
  }

  .features .feature-list{
    display: flex;
    flex-direction: row;
    gap: 16px;


    margin: 0;

    overflow-x: auto;
  }

  .features .feature-list li {
    min-width: 200px;
    max-width: 200px;
  }

  

  .features img {
    max-width: 100%;
  }

  .testimonial-card {
    padding: 16px 16px 32px 16px;
  }

  .testimonial-card p {
    margin-top: 16px !important;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  blockquote {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin: 0;
  }

  nav img {
    height: 20px !important;
  }

  nav {
    padding: 16px 16px;
  }

  nav a {
    font-size: clamp(0.75rem, 1.25vw, 1rem);
  }

  .features {
    flex-direction: column;
    padding: 32px 16px;
  }
}
