/* MozoAI website. System fonts and materials, one accent colour, light and
   dark appearance, mirroring the app's design rules. */

:root {
  --brand: #4f46e5;
  --brand-soft: #a3a3ff;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --radius: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a3a3ff;
    --bg: #000000;
    --bg-alt: #111113;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 40px rgba(79, 70, 229, 0.25); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 28px 0 14px; }
.hero p.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px;
}
.badge:hover { text-decoration: none; opacity: 0.9; }
.badge small { font-weight: 400; opacity: 0.75; }

/* Masonry gallery */
.gallery { columns: 4 220px; column-gap: 14px; padding: 24px 0 8px; }
.gallery img {
  width: 100%; display: block; margin: 0 0 14px;
  border-radius: 16px; break-inside: avoid;
  background: var(--bg-alt);
}
.gallery .tall { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery .wide { aspect-ratio: 4 / 3; object-fit: cover; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 64px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 14px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 auto 44px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .glyph { font-size: 28px; }

/* Screenshots */
.screens { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.screens img { width: 260px; max-width: 80vw; border-radius: 36px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.plan h3 { font-size: 22px; margin: 0 0 4px; }
.plan .price { color: var(--brand); font-weight: 600; margin-bottom: 14px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan li { margin: 6px 0; }
.plan.featured { border: 2px solid var(--brand); }

/* Legal and support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 40px; letter-spacing: -0.015em; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { text-align: left; font-size: 24px; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { background: var(--bg-alt); border-radius: 14px; padding: 16px 18px; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  section { padding: 56px 0; }
}
