@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

body {
  font-family: "IBM Plex Mono", monospace;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #000000;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: left;
  margin-bottom: 3rem;
}

.logo {
  max-width: 150px;
}

.intro h1 {
  font-size: 24px;
  font-weight: bold;
  line-height: 150%;
  margin-bottom: 1.5rem;
}

.intro p {
  font-size: 18px;
  line-height: 150%;
  color: #525252;
  margin-bottom: 8rem; /* Line 1: Increased distance between intro and "What we've built so far" */
}

.products {
  text-align: left;
}

.down-arrow {
  display: block;
  margin-bottom: 1rem;
}

.products h2 {
  font-size: 24px;
  font-weight: bold;
  line-height: 150%;
  margin-bottom: 4rem; /* Line 2: Increased distance between "What we've built so far" and the logo */
}

.product-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.product-info {
  flex-grow: 1;
}

.product-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.product-logo {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
}

.product-info h3 {
  font-size: 32px;
  font-weight: bold;
  line-height: 150%;
  margin: 0;
}

.product-info p {
  font-size: 18px;
  line-height: 150%;
  color: #525252;
  margin-bottom: 1rem;
  max-width: 90%;
}

.learn-more {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f6f6f6;
  border: 2px solid #dadada;
  border-radius: 8px;
  color: #b12b46;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Prevent text from wrapping */
  min-width: max-content; /* Ensure the button is as wide as its content */
}

.learn-more:hover {
  background-color: #ececec;
}

.product-divider {
  height: 3px;
  background-color: #dadada;
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  .intro h1 {
    font-size: 20px;
  }

  .intro p {
    font-size: 16px;
  }

  .products h2 {
    font-size: 20px;
  }

  .product-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-info h3 {
    font-size: 28px;
  }

  .product-info p {
    font-size: 16px;
  }

  .learn-more {
    margin-top: 1rem;
    align-self: flex-start; /* Align button to the left on mobile */
  }
}

.who-we-are {
  margin-top: 8rem;
}

.who-we-are h2 {
  font-size: 24px;
  font-weight: bold;
  line-height: 150%;
  margin-bottom: 3rem;
}

.person-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.person-image {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  margin-right: 2rem;
  flex-shrink: 0;
}

.person-info {
  width: 200px; /* Fixed width for name/role section */
  margin-right: 3rem; /* Increased spacing between name/role and description */
  flex-shrink: 0;
}

.person-info h3 {
  font-size: 20px;
  font-weight: bold;
  line-height: 150%;
  color: #282828;
  margin: 0;
  word-wrap: break-word; /* Allow long names to wrap */
}

.person-info .role {
  font-size: 18px;
  line-height: 150%;
  color: #525252;
  margin: 0.5rem 0 0;
}

.person-card .description {
  font-size: 18px;
  line-height: 150%;
  color: #525252;
  margin: 0;
  flex: 1;
  max-width: 400px; /* Slightly smaller width for description */
}

@media (max-width: 768px) {
  .person-card {
    flex-direction: column;
  }

  .person-image {
    margin-bottom: 1rem;
  }

  .person-info {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .person-card .description {
    font-size: 18px;
    max-width: 100%;
  }
}

footer {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding: 40px 0; /* This gives a total height close to 134px when accounting for content */
  margin-top: 5rem; /* Add some space between the last section and the footer */
}

footer p {
  margin: 0;
  font-size: 18px;
  line-height: 150%;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

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

/* Quotebook page styles */
.quotebook-intro {
  text-align: left;
  margin-bottom: 4rem;
}

.product-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.product-header .product-logo {
  width: 64px;
  height: 64px;
  margin-right: 1rem;
}

.product-header h1 {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.quotebook-intro p {
  font-size: 18px;
  line-height: 150%;
  color: #525252;
  max-width: 600px;
}

.proverbia-preview {
  margin-bottom: 2rem;
  max-width: 80%;
}

.phone-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Shows 2 images per row */
  gap: 2rem;
  max-width: 100%;
}

.phone-image {
  width: 100%;
  height: auto;
  max-width: 100%; /* Ensures image doesn't exceed its container */
}

@media (max-width: 768px) {
  .phone-images {
    grid-template-columns: 1fr; /* Stacks images on mobile */
  }
}

.download-from-app-store {
  text-align: left;
  margin-bottom: 6rem;
}

.user-feedback {
  margin-bottom: 6rem;
}

.user-feedback h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 2rem;
}

.feedback-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feedback-item {
  background-color: #f6f6f6;
  border: 2px solid #dadada;
  border-radius: 16px;
  padding: 1.5rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.feedback-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.feedback-item p {
  font-size: 16px;
  line-height: 150%;
  color: #525252;
}

.legal-links {
  margin-top: 6rem;
  text-align: left;
}

.legal-links h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.button-container {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.down-arrow {
  display: block;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .quotebook-preview {
    margin-bottom: 4rem;
    max-width: 100%;
  }

  .phone-images {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-image {
    max-width: 100%;
  }

  .feedback-container {
    grid-template-columns: 1fr;
  }
}

/* Legal pages styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.last-updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  color: #525252;
  margin-bottom: 2rem;
}

.legal-block {
  margin-bottom: 2rem;
}

.legal-block p {
  font-size: 18px;
  line-height: 1.5;
  color: #000000;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 1rem;
  }

  .legal-content h1 {
    font-size: 28px;
  }

  .legal-block p {
    font-size: 16px;
  }
}
