/* Small, dependency-free styles for the Money Bonsai landing page. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #111827;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  overflow-wrap: break-word;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 100vh;
  margin-top: 0.25rem;
  padding: 0.5rem;
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.hero h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: background-color 150ms ease, color 150ms ease;
}

.button-primary {
  color: #fff;
  background: #dc2626;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b91c1c;
}

.button-secondary {
  border: 2px solid #374151;
  font-weight: 700;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #fff;
  background: #374151;
}

.screenshots {
  display: flex;
  justify-content: flex-start;
  margin: 0 -0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.screenshots-track {
  display: flex;
  gap: 0.5rem;
  min-width: 900px;
  padding: 0 0.5rem;
}

.screenshots img {
  width: 230px;
  height: 497px;
  flex: 0 0 230px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.updates {
  display: grid;
  width: 100%;
  max-width: 64rem;
  gap: 0.5rem;
  margin: 0 auto;
}

.updates > h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
}

.changelog-list {
  display: grid;
  gap: 1.25rem;
}

.changelog-item {
  display: grid;
  gap: 0.25rem;
}

.changelog-item h3,
.changelog-item p,
.changelog-item ul {
  margin: 0;
  font-size: 1rem;
}

.changelog-item p,
.changelog-item ul {
  line-height: 1.75;
}

.changelog-item h3 {
  font-weight: 400;
}

.changelog-item ul {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.25rem;
}

.site-footer {
  display: flex;
  border-top: 1px solid #d1d5db;
  padding: 0.5rem 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.site-footer a {
  padding: 0.5rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #dc2626;
}

.legal-page {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #1a1a1a;
  font-family: Inter, system-ui, sans-serif;
}

.legal-page h1 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page section:last-child {
  margin-bottom: 0;
}

.legal-page h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.legal-page p {
  margin: 0;
  line-height: 1.7;
}

.legal-page a {
  color: #0070f3;
}

@media (min-width: 640px) {
  .page-shell {
    margin-top: 1.25rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .site-footer nav {
    gap: 2rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .screenshots {
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .site-footer nav {
    flex-wrap: wrap;
  }
}
