* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  color: #1c1c1c;
  padding-top: 64px;  /* pushes the page down so the fixed header doesn't cover the hero */
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
}

#header-img{
  height: 36px;
}

#nav-bar {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 15px;
}

.nav-link:hover{
  color: #3882f6;
}

#hero {
  padding: 80px 24px;
  background-color: #f4f5f7;
  text-align: center;
}

#hero h1 {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 16px;
}

#hero p {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

#features {
  padding: 60px 24px;
  text-align: center;
}

#features h2{
  margin-bottom: 32px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.feature{
  max-width: 220px;
}
.feature h3{
  margin-bottom: 8px;
}

#video-section {
  padding: 60px 24px;
  background-color: #1f2937;
  color: #e5e7eb;
  text-align: center;
}

#video {
  width: 100%;
  max-width: 640px;
  height: 360px;
  border: none;
  margin-top: 20px;
}

#signup {
  padding: 60px 24px;
  text-align: center;
}

#form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

#email {
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 260px;
}

#submit {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #3882f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;  /* pointer = the hand cursor, a hint that the button is clickable */
}

#footer {
  padding: 24px;
  text-align: center;
  background-color: #1f2937;
  color: #e5e7eb;
}

@media (max-width: 600px) {
  #hero h1{
  font-size: 1.5rem;
}
  #nav-bar{
  gap: 12px;
}
  .nav-link{
  font-size: 13px;
}
  #video{
  height: 220px;
}
}

section {
  scroll-margin-top: 80px;  /* when a nav link jumps to a section, it stops 80px early so the fixed header doesn't cover the heading */
}

#form {
  align-items: center;
}

#email {
  max-width: 100%;
  min-width: 0;
}

#video {
  aspect-ratio: 16 / 9;
  height: auto;
}

.nav-link:focus-visible,
#email:focus-visible,
#submit:focus-visible {
  outline: 3px solid #e5a989;
  outline-offset: 4px;
}
