/* The app's palette (src/constants/theme.ts), with a darker green so links are readable on white. */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #11181c;
  --muted: #5f6b76;
  --primary: #15803d;
  --border: #e3e7eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f12;
    --card: #161b20;
    --text: #ecedee;
    --muted: #9ba5ae;
    --primary: #22c55e;
    --border: #262d34;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.5em 0 0.2em;
}
h2 {
  font-size: 1.3rem;
  margin: 1.8em 0 0.4em;
}
h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 0.3em;
}
a {
  color: var(--primary);
}
ul {
  padding-left: 1.2em;
}
li {
  margin: 0.3em 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.back {
  text-decoration: none;
  font-weight: 600;
}

/* Home page */
.home {
  text-align: center;
  max-width: 1120px;
}
.home .lead,
.home .support {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.buddy {
  width: 120px;
  height: 120px;
}
.home h1 {
  font-size: 2.6rem;
  margin-top: 0.2em;
}
.tagline {
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}
.lead {
  max-width: 520px;
  margin: 1em auto;
}
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
}
.features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 2em 0;
}
.features li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
}
footer {
  margin-top: 2em;
}
.support {
  text-align: left;
}

/* Screenshots: a swipeable row on phones, all in view on wide screens. */
.screens {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 2em -16px 0;
  padding: 4px 16px 12px;
}
.screens figure {
  flex: 0 0 62%;
  max-width: 220px;
  margin: 0;
  scroll-snap-align: center;
}
.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.screens figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}
@media (min-width: 720px) {
  .screens {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    margin: 2.5em 0 0;
    padding: 4px 0 12px;
    gap: 20px;
  }
  .screens figure {
    flex: 1 1 0;
    min-width: 160px;
    max-width: 210px;
  }
  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
  }
  .features li {
    margin: 0;
  }
}

/* Support email: big tap target, with fallbacks for computers without a mail app. */
.email {
  text-align: center;
  margin: 1.2em 0;
}
.email-button {
  display: inline-block;
  background: var(--primary);
  color: var(--bg); /* readable on the green in both light and dark mode */
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;
}
.email-alt {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
