/* MundiX website: the app's look (the Journal's soft mesh, ink type, one purple), in the system font. */
:root {
  --ink: #17101F;
  --muted: #786E8C;
  --primary: #843DFF;
  --primary-deep: #6420D6;
  --card: rgba(255, 255, 255, 0.78);
  --rule: #EDE7F7;
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background-color: #FDF8FF;
  background-image:
    radial-gradient(60% 50% at 0% 0%, #EDE3FF 0%, rgba(237, 227, 255, 0) 100%),
    radial-gradient(55% 45% at 100% 8%, #FFE6F1 0%, rgba(255, 230, 241, 0) 100%),
    radial-gradient(60% 50% at 10% 100%, #FFF6EE 0%, rgba(255, 246, 238, 0) 100%),
    radial-gradient(55% 50% at 100% 100%, #FFEEDD 0%, rgba(255, 238, 221, 0) 100%),
    radial-gradient(50% 40% at 55% 48%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

a { color: var(--primary-deep); text-underline-offset: 3px; }

.page { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }

.top { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.top img { width: 40px; height: 40px; border-radius: 10px; }
.top span { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 36px 0 12px; }
h2 { font-size: 22px; font-weight: 700; margin: 36px 0 8px; }
h3 { font-size: 17px; font-weight: 700; margin: 24px 0 4px; }
p, li { font-size: 17px; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.small { font-size: 14px; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 18px 50px rgba(100, 32, 214, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
}
.button.secondary { background: rgba(255, 255, 255, 0.9); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero { text-align: center; padding-top: 8vh; }
.hero .mark { width: min(78vw, 420px); height: auto; margin: 0 auto; display: block; }
.hero h1 { margin-top: 18px; }
.hero .buttons { justify-content: center; }

.foot { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

.open { text-align: center; padding-top: 10vh; }
.open .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 30px rgba(100, 32, 214, 0.18); }
.open h1 { font-size: clamp(28px, 6vw, 40px); margin-top: 22px; }
.open .buttons { justify-content: center; }

.todo { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
