/* The public website (welcome, support, privacy). Black and white, like the app;
   blue only for links, like the location and routes in the app.
   The moderator portal has its own style in moderators/style.css. */
:root {
  --text: #111;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --soft: #f4f4f4;
  --bg: #fff;
  --blue: #007aff;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--blue); }
img { max-width: 100%; display: block; }

/* ---------- Top bar with the menu ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.spacer { flex: 1; }

.menu { position: relative; }
.menu-button {
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--soft); color: var(--text);
}
.menu-button:hover { border-color: var(--text); }
.menu-button .bars { font-size: 1.1rem; line-height: 1; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 230px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.menu-list a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none;
}
.menu-list a:hover, .menu-list a:focus-visible { background: var(--soft); outline: none; }
.menu-list a[aria-current="page"] { font-weight: 700; }
.menu-list .divider { height: 1px; margin: 6px 4px; background: var(--line); }
.menu-list small { display: block; color: var(--muted); }

/* ---------- Page layout ---------- */
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 32px 0 6px; }
.muted { color: var(--muted); }

/* ---------- Welcome ---------- */
.hero {
  max-width: 1000px; margin: 0 auto; padding: 56px 20px 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.hero .app-icon { width: 88px; height: 88px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 20px; }
.hero h1 { font-size: 3rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
/* The phone with the slideshow: the slides lie on top of each other and fade in and out. */
.showcase { justify-self: center; width: 100%; max-width: 300px; text-align: center; }
.phone {
  position: relative; aspect-ratio: 1206 / 2622;
  border-radius: 40px; border: 8px solid #111; overflow: hidden; background: #111;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .18);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { margin: 16px 0 8px; font-weight: 700; }
.slide-dots { display: flex; justify-content: center; gap: 8px; }
.slide-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: none; background: #ccc; cursor: pointer;
}
.slide-dots button[aria-current="true"] { background: var(--text); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.download {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 12px 26px; border-radius: 14px;
  background: var(--text); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.download small { font-weight: 500; font-size: .8rem; opacity: .8; }
.download[aria-disabled="true"] { background: #555; cursor: default; }
.note { margin-top: 10px; font-size: .9rem; color: var(--muted); }

.features {
  max-width: 1000px; margin: 0 auto; padding: 8px 20px 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
.feature { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Text pages (privacy, support) ---------- */
.text-page ul { padding-left: 1.2rem; }
.text-page li { margin: 4px 0; }
.card { background: var(--soft); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.card p { margin: 0; }
.card .email { font-size: 1.2rem; font-weight: 700; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 24px 20px;
  text-align: center; color: var(--muted); font-size: .9rem;
}
footer a { color: var(--muted); }

/* Phones: one column, the screenshot below the text. */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; text-align: center; }
  .hero .app-icon { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 2.3rem; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .showcase { max-width: 240px; }
  .brand span { display: none; }
}
