/* Momen site — one stylesheet for every page. Colours are the app icon's
   gradient stops (src/scripts/generate_icon.swift) over the ink green of the
   App Store screenshots (fastlane/scripts/polish/render.js). */
:root {
  --ink: #0a1c18;
  --ink-raised: #10302a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2f7f5;
  --muted: rgba(242, 247, 245, 0.72);
  --yellow: #ffe27a;
  --green: #5fcb6a;
  --teal: #1eae8c;
  --indigo: #4f5bd5;
  --violet: #7b3fc4;
  --link: #8fe3c9;
  --radius: 18px;
  --wrap: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 92% 0%, rgba(123, 63, 196, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 55% 35% at 0% 12%, rgba(30, 174, 140, 0.4) 0%, transparent 72%),
    radial-gradient(ellipse 70% 30% at 0% 100%, rgba(255, 226, 122, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #0e2a24 0%, var(--ink) 50%, #0c2420 100%);
  background-attachment: fixed;
  background-color: var(--ink);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }

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

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .nav { margin-bottom: 10px; }
.foot p { margin: 4px 0; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 span {
  background: linear-gradient(90deg, var(--yellow), var(--green) 35%, var(--teal) 55%, var(--indigo) 80%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.badge { display: inline-block; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font-weight: 600; font-size: 15px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.phones { display: flex; justify-content: center; }
.phones img { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0; }
.card { background: rgba(16, 48, 42, 0.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; margin: 24px 0 8px; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; max-width: 260px; height: auto; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.4)); }
.gallery figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }

.note { color: var(--muted); font-size: 15px; }

/* Documents (privacy, terms, support) */
.doc { max-width: 760px; padding: 24px 0 0; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { color: rgba(242, 247, 245, 0.88); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: rgba(16, 48, 42, 0.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.summary p { margin: 6px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(n + 2) { display: none; }
  .top { flex-direction: column; align-items: flex-start; }
}
