/* mimo website. No external fonts, scripts or trackers. Colours mirror Mimo/Design/Theme.swift. */

:root {
  --paper: #FAF8F2;
  --card: #FFFFFF;
  --ink: #2D293B;
  --muted: #6A6577;
  --purple: #6551D8;
  --purple-text: #5543C4;
  --lilac: #EDE8FA;
  --lime: #E8EFAC;
  --line: #E9E5DE;
  --danger-surface: #F7E3E5;
  --brand: #6551D8;          /* same as the app icon background, in both modes */
  --on-brand: #FFFFFF;
  --on-brand-soft: #E4DEFB;
  --shadow: 0 36px 70px -32px rgba(45, 41, 59, 0.45);

  --mood-1: #A69ADC;
  --mood-2: #AACDDD;
  --mood-3: #EEDFA3;
  --mood-4: #BFD78B;
  --mood-5: #F4AD83;
  --face-ink: #2D293B;

  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15131C;
    --card: #221F2C;
    --ink: #F1EEF7;
    --muted: #A9A3B8;
    --purple: #A090FA;
    --purple-text: #B4A7FF;
    --lilac: #28233A;
    --line: #343040;
    --danger-surface: #3B2329;
    --shadow: 0 36px 70px -32px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple-text); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }

.lead { font-size: 1.1875rem; color: var(--muted); max-width: var(--measure); }

/* Top bar: shared by every page */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.wordmark {
  font-weight: 900; font-size: 1.875rem; letter-spacing: -0.06em; line-height: 1;
  text-decoration: none; color: var(--purple);
}
.lang { display: flex; gap: 4px; }
.lang a, .lang span {
  font-size: 0.9375rem; font-weight: 700; text-decoration: none;
  padding: 8px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.lang span { background: var(--lilac); color: var(--ink); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }

/* Hero: the purple field from the app icon */

.hero { background: var(--brand); color: var(--on-brand); padding-bottom: clamp(48px, 8vw, 96px); }
.hero .wordmark { color: var(--lime); }
.hero .lang span { background: rgba(255, 255, 255, 0.16); color: var(--on-brand); }
.hero .lang a { color: var(--on-brand-soft); }
.hero .lang a:hover { color: var(--on-brand); }
.hero :focus-visible { outline-color: var(--lime); }

.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  padding-top: clamp(16px, 4vw, 40px);
}
.mascot { width: clamp(112px, 16vw, 168px); margin-left: -6%; margin-bottom: 8px; }
.hero h1 {
  font-size: clamp(2.75rem, 8.4vw, 5.5rem);
  letter-spacing: -0.045em; line-height: 0.98; max-width: 9.5em;
}
.hero .lead { color: var(--on-brand-soft); margin-top: 22px; }
.soon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px;
}
.soon-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lime); color: #2D293B; font-weight: 800; font-size: 1rem;
  padding: 13px 20px; border-radius: 999px;
}
.soon-pill svg { width: 18px; height: 18px; }
.soon small { color: var(--on-brand-soft); font-size: 0.9375rem; }

.phone {
  border-radius: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  outline: 1px solid rgba(45, 41, 59, 0.08);
  background: #FAF8F2;
}
.hero-phone { width: min(330px, 78vw); justify-self: center; margin-bottom: calc(-1 * clamp(140px, 22vw, 220px)); }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; }
  .hero-phone { justify-self: end; }
}

/* Five moods */

.moods { padding-top: clamp(190px, 26vw, 250px); padding-bottom: clamp(56px, 8vw, 96px); }
.moods h2 { max-width: 13em; }
.moods .lead { margin-top: 14px; }
.faces {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2vw, 28px);
  max-width: 720px;
}
.faces li { display: grid; justify-items: center; gap: 10px; font-weight: 700; font-size: clamp(0.8125rem, 2.4vw, 1rem); }
.faces svg { width: 100%; max-width: 104px; height: auto; }
@media (min-width: 860px) {
  .moods .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: end; }
  .faces { margin-top: 0; }
}

/* Feature rows */

.feature {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.feature-text { max-width: var(--measure); }
.feature-text p { margin-top: 16px; color: var(--muted); }
.feature-text p.plain { color: var(--ink); }
.feature .phone { width: min(300px, 74vw); justify-self: center; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .feature-text { order: 2; }
  .feature .phone { justify-self: center; }
}

.extras { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.extras li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.extras svg { width: 22px; height: 22px; margin-top: 2px; color: var(--purple); }

/* Keepsakes: a real sequence, so the day counts stay */

.keepsakes {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px;
}
.keepsakes li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; }
.keepsakes img { width: 88px; height: 88px; }
.keepsakes b { font-size: 0.9375rem; line-height: 1.25; }
.keepsakes span { font-size: 0.8125rem; color: var(--muted); }

/* Year in colour: the one loud element below the hero */

.year { padding-block: clamp(56px, 8vw, 104px); background: var(--card); }
.year-head { display: grid; gap: 14px; max-width: 40rem; }
.year-grid { margin-top: 40px; display: grid; gap: clamp(3px, 0.5vw, 6px); }
.year-row {
  display: grid; grid-template-columns: 1.6em repeat(31, minmax(0, 1fr));
  gap: clamp(2px, 0.4vw, 5px); align-items: center;
}
.year-row b { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.year-row i { aspect-ratio: 1; border-radius: 28%; background: var(--line); }
.year-row i.m1 { background: var(--mood-1); }
.year-row i.m2 { background: var(--mood-2); }
.year-row i.m3 { background: var(--mood-3); }
.year-row i.m4 { background: var(--mood-4); }
.year-row i.m5 { background: var(--mood-5); }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9375rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.legend .m1 { background: var(--mood-1); } .legend .m2 { background: var(--mood-2); }
.legend .m3 { background: var(--mood-3); } .legend .m4 { background: var(--mood-4); }
.legend .m5 { background: var(--mood-5); } .legend .m0 { background: var(--line); }

/* The grid fills in as it scrolls into view, where the browser supports scroll-driven animation. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .year-row i {
      animation: fill linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes fill { from { transform: scale(0.3); opacity: 0; } }
  }
}

/* Privacy */

.private { padding-block: clamp(56px, 8vw, 104px); }
.private-box {
  background: var(--lilac); border-radius: 36px;
  padding: clamp(28px, 5vw, 64px);
  display: grid; gap: 32px;
}
.private-box h2 { max-width: 12em; }
.private-box .lead { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks svg { width: 24px; height: 24px; color: var(--purple); margin-top: 1px; }
@media (min-width: 860px) {
  .private-box { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
}

/* Pro */

.pro { padding-bottom: clamp(56px, 8vw, 104px); }
.pro-grid { display: grid; gap: 36px; }
.pro-grid .feature-text p { margin-top: 16px; color: var(--muted); }
.prices { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; align-self: start; }
.prices li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.prices li:first-child { border-top: 1px solid var(--line); }
.prices b { font-size: 1.125rem; }
.prices strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.prices span { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; }
.fine { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 860px) {
  .pro-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

/* Care note */

.care { padding-bottom: clamp(56px, 8vw, 104px); }
.care-box {
  border-left: 4px solid var(--mood-1);
  padding: 4px 0 4px 20px; max-width: 44rem;
}
.care-box p + p { margin-top: 8px; }
.care-box .muted { color: var(--muted); }

/* Footer */

.foot { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 0.9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { text-decoration: underline; }

/* Text pages: privacy, imprint, support */

.page-head { border-bottom: 1px solid var(--line); }
.doc { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc-body { max-width: 44rem; }
.doc h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -0.04em; }
.doc .stand { margin-top: 12px; color: var(--muted); }
.doc h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 48px; }
.doc h3 { font-size: 1.125rem; margin-top: 28px; }
.doc p, .doc ul, .doc address, .doc dl { margin-top: 14px; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc address { font-style: normal; }
.doc .summary {
  margin-top: 28px; background: var(--lilac); border-radius: 24px; padding: 22px 26px;
}
.doc .summary h2 { margin-top: 0; font-size: 1.1875rem; }
.doc .summary ul { margin-top: 10px; }
.doc .alt { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }

.todo { background: #FFE7A8; color: #3A2E00; border-radius: 4px; padding: 0 3px; }

.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; min-height: 44px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.375rem; font-weight: 600; color: var(--purple); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin: 0 0 16px; color: var(--muted); }
.faq details ol, .faq details ul { padding-left: 1.25em; }

.contact {
  margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px;
}
.contact p { margin-top: 6px; }
.contact p:first-child { margin-top: 0; }

.lines { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc .lines li + li { margin-top: 0; }
.lines li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  background: var(--danger-surface); border-radius: 16px; padding: 14px 18px;
}
.lines a { font-weight: 800; text-decoration: none; }
