/* Mamora website: "Peach dawn" colours and Manrope, the same as the app.
   Fonts are served from this site (no Google Fonts), so visitors' browsers talk to no one else. */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/Manrope_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/Manrope_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/Manrope_700Bold.ttf") format("truetype"); }

:root {
  --background: #FFF8F1;
  --surface: #FFFFFF;
  --text: #4B3A45;
  --muted: #7D6670;
  --peach: #E8967A;
  --peach-soft: #FCE6DC;
  --apricot-soft: #FDF0DE;
  --plum: #5E474F;
  --border: #F0E2D6;
  --warning: #B4473A;
  --warning-soft: #F9DEDE;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--plum); text-decoration-color: var(--peach); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Top bar: logo on the left, language on the right */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang { font-size: 15px; color: var(--muted); white-space: nowrap; }
.lang a, .lang strong { padding: 4px 2px; }
.lang strong { color: var(--text); font-weight: 600; }

/* Landing page */
.hero { text-align: center; padding: 40px 0 24px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 28px rgba(94, 71, 79, 0.18); }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 24px 0 8px; }
.hero .tagline { font-size: 21px; font-weight: 600; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 auto 8px; max-width: 520px; }
.badge {
  display: inline-block; margin-top: 20px; padding: 10px 18px; border-radius: 999px;
  background: var(--peach-soft); color: var(--text); font-weight: 600; font-size: 15px;
}
.cards { display: grid; gap: 12px; padding: 16px 0 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.card h2 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Legal pages */
.doc { padding: 8px 0 32px; }
.doc h1 { font-size: 32px; line-height: 1.2; margin: 16px 0 4px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px 20px; }
.summary h2 { margin-top: 4px; }
.note { background: var(--apricot-soft); border-radius: 16px; padding: 12px 16px; }
.safety { background: var(--warning-soft); border: 2px solid var(--warning); border-radius: 16px; padding: 12px 16px; }
.steps li { margin: 8px 0; }

/* Tables become stacked cards on phones, so nothing scrolls sideways */
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
@media (max-width: 639px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px 12px; margin: 0 0 12px; }
  td { border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
}

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 32px; padding: 20px 0 40px; font-size: 15px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
footer p { margin: 4px 0; }
