/* Manna website - shared styles (index, privacy policy, terms). Colours match the app. */
:root {
  --violet: #4A2C82;
  --violet-deep: #2B1A4D;
  --ivory: #FBF8F1;
  --gold: #C29B45;
  --gold-soft: #E2C780;
  --ink: #241A33;
  --muted: #6B6178;
  --line: #E7DFEF;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* Older iOS Safari: the visible height (100vh there includes the browser bars). */
html { height: -webkit-fill-available; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header bar */
.top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
}
.top a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.top img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(74, 44, 130, .25); }
.top .name { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; color: var(--violet); letter-spacing: .2px; }

/* Landing page */
.hero {
  /* The visible screen height: dvh follows the browser's bars, so the footer stays on screen.
     Fallbacks for browsers without dvh. */
  min-height: 100vh; min-height: -webkit-fill-available; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, #5A3796 0%, var(--violet) 55%, var(--violet-deep) 100%);
  color: #fff;
}
.hero .top .name { color: #fff; }
/* viewport-fit=cover: keep clear of the notch and the home indicator. */
.hero .top { padding-top: max(12px, env(safe-area-inset-top)); }
.hero footer { padding-bottom: max(16px, calc(8px + env(safe-area-inset-bottom))); }
.hero main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8px 16px 20px;
  min-width: 0; max-width: 100%;
}
.art {
  width: 136px; height: 170px;
  border-radius: 68px 68px 14px 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(226, 199, 128, .35);
  margin-bottom: 16px;
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; font-size: clamp(34px, 8vw, 52px);
  margin: 0 0 2px; letter-spacing: .3px; line-height: 1.15;
}
.tagline { color: var(--gold-soft); font-weight: 600; margin: 0 0 10px; font-size: 17px; }
.about { max-width: 560px; margin: 0 auto; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.about.more { margin-top: 18px; font-size: 14.5px; color: rgba(255, 255, 255, .75); }

.download { margin-top: 18px; width: 100%; }
.download p { margin: 0 0 10px; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.stores { display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; }
/* Both buttons on one line, also on narrow phones. */
.store {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 1 190px; min-width: 0; padding: 8px 12px;
  background: #0d0d0f; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px;
  transition: transform .15s ease, border-color .15s ease;
}
.store:hover, .store:focus-visible { transform: translateY(-2px); border-color: var(--gold-soft); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; white-space: nowrap; }
.store small { font-size: 10px; opacity: .85; }
.store strong { font-size: 16px; font-weight: 600; }

footer { padding: 10px 0 16px; font-size: 13px; text-align: center; }
.hero footer { color: rgba(255, 255, 255, .65); }
.hero footer a { color: rgba(255, 255, 255, .85); }
footer nav { display: flex; gap: 18px; justify-content: center; margin-bottom: 6px; }

/* Policy pages */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; margin: 8px 0 28px; }
.doc h1 { font-family: "Fraunces", Georgia, serif; color: var(--violet); font-size: clamp(28px, 6vw, 36px); margin: 0 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.doc h2 { font-size: 18px; margin: 26px 0 6px; color: var(--violet-deep); }
.doc p, .doc li { font-size: 15.5px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.page footer { color: var(--muted); }

/* Narrow phones: the two store buttons still fit side by side without widening the page
   (a page wider than the screen makes phones zoom out and push the footer off screen). */
@media (max-width: 370px) {
  .stores { gap: 8px; }
  .store { padding: 7px 8px; gap: 6px; }
  .store svg { width: 20px; height: 20px; }
  .store small { font-size: 9px; }
  .store strong { font-size: 14px; }
}

@media (min-width: 640px) {
  .art { width: 190px; height: 238px; border-radius: 95px 95px 18px 18px; margin-bottom: 22px; }
  .hero main { padding: 16px 20px 32px; }
  .about { font-size: 17px; }
  .download { margin-top: 26px; }
  .store { padding: 10px 18px; gap: 12px; }
  .store svg { width: 28px; height: 28px; }
  .store small { font-size: 11px; }
  .store strong { font-size: 19px; }
  .doc { padding: 40px 44px; }
}
