/* Mail Focus public site.
 *
 * Self-hosted, like everything on this Pi: no CDN, no external fonts, no
 * analytics. The admin surface and the account portal bring their own styles;
 * this file is only the pages that sell the extension.
 */

:root {
  --bg: #ffffff;
  --panel: #f7f8fa;
  --border: #dfe3e9;
  --text: #14171c;
  --muted: #5c6572;
  --accent: #1f6feb;
  --radius: 10px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --panel: #171a21;
    --border: #2a2f3a;
    --text: #e6e8ee;
    --muted: #98a0b0;
    --accent: #6ea8fe;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

a { color: var(--accent); }

header.site,
footer.site {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

footer.site {
  border-bottom: none;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4rem;
}

header.site .brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

header.site nav { display: flex; gap: 1.25rem; }

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }

.cta-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 2rem 0;
}

form.inline { display: inline; margin: 0; }

.cta,
button.cta {
  display: inline-block;
  padding: .8rem 1.4rem;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  /* A tap target has to be reachable with a thumb. */
  min-height: 48px;
}

.cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.cta.disabled {
  background: var(--panel);
  color: var(--muted);
  cursor: default;
}

.cta:hover { filter: brightness(1.08); }

.points {
  display: grid;
  gap: 1.5rem;
  /* Never a min-width above 360px: nothing below that can undo one. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: 3rem;
}

.points p { color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: var(--measure);
}

.card h2 { margin-top: 0; font-size: 1.8rem; }
.card ul { padding-left: 1.1rem; color: var(--muted); }

.muted { color: var(--muted); }

@media (max-width: 768px) {
  main { padding: 2rem 1rem 0; }
  header.site, footer.site { padding: .85rem 1rem; gap: 1rem; }
  .cta, button.cta { width: 100%; text-align: center; }
}
