/* Mini Draw landing page — the look of the App Store screenshots.
   Loaded after ../styles.css and scoped to <body class="md">, so the legal
   pages and the Prodigy root page keep the shared styles untouched.

   Taken from the store screenshots (Release/AppStoreScreenshots and the
   captioned shots in App Store Connect):
   - bright purple background with white stars    #802CFF / #7552FF
   - blue and magenta backgrounds of other shots  #0D84FD / #D937FE
   - "sticker" headlines: white SF Pro Rounded Black with a deep-purple
     outline and a solid drop                      #2C0066
   - yellow and cyan accents                       #FFE430 / #55D9F2
   - chunky dark outlines around cards and frames */

.md {
  --md-purple: #802CFF;
  --md-purple-2: #8F45FF;
  --md-violet: #7552FF;
  --md-blue: #0D84FD;
  --md-magenta: #D937FE;
  --md-ink: #2C0066;
  --md-ink-soft: #4B3A7A;
  --md-yellow: #FFE430;
  --md-cyan: #55D9F2;
  --md-pink: #FF7BC8;
  --md-lime: #A8EB4A;
  --md-orange: #FFA53D;
  --md-paper: #F4EEFF;
  --md-line: 3px solid var(--md-ink);
  --md-drop: 6px 7px 0 var(--md-ink);
  --md-drop-hover: 9px 11px 0 var(--md-ink);
  --md-stars: url("../assets/star-pattern.png");
  --md-gap: 12px;                       /* floating header: gap to the screen edges */
  --md-header-h: 64px;
  --md-header-space: calc(var(--md-header-h) + var(--md-gap) * 2);

  background: var(--md-paper);
  color: var(--md-ink);
  overflow-x: hidden;
}
.md p { color: var(--md-ink-soft); }
.md h1, .md h2, .md h3 { color: var(--md-ink); letter-spacing: 0; }

/* Sticker headline: white letters, a thick deep-purple outline and a solid
   drop below. The stroke is centred on the letter's edge, so it is twice the
   visible width, and paint-order puts it under the fill: only the outer half
   shows and the letters keep their full weight. */
.md .sticker {
  color: #fff;
  font-weight: 900;
  line-height: 1.08;
  -webkit-text-stroke: 0.18em var(--md-ink);
  paint-order: stroke fill;
  text-shadow: 0.08em 0.15em 0 var(--md-ink);
}
@supports not (paint-order: stroke fill) {
  /* No paint-order: draw the outline from shadows around the letters instead. */
  .md .sticker {
    -webkit-text-stroke: 0;
    text-shadow:
      0.09em 0 0 var(--md-ink), -0.09em 0 0 var(--md-ink),
      0 0.09em 0 var(--md-ink), 0 -0.09em 0 var(--md-ink),
      0.064em 0.064em 0 var(--md-ink), -0.064em 0.064em 0 var(--md-ink),
      0.064em -0.064em 0 var(--md-ink), -0.064em -0.064em 0 var(--md-ink),
      0.08em 0.21em 0 var(--md-ink);
  }
}
.md .sticker .pop { color: var(--md-yellow); }
.md .tilt { display: inline-block; transform: rotate(-3deg); }

/* Purple star backdrop used by the hero and the download band. */
.md .md-starry {
  background-color: var(--md-purple);
  background-image: var(--md-stars);
  background-size: 200px 200px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* ---------- Text selection ----------
   Bright yellow with deep-purple letters reads on every background here.
   Sticker headings keep their white letters and outline on a pink marker. */
.md ::selection { background: var(--md-yellow); color: var(--md-ink); text-shadow: none; }
.md .sticker::selection, .md .sticker ::selection { background: var(--md-pink); color: #fff; }

/* ---------- Cursors ----------
   Mimi's own arrow everywhere, and the pointing hand on anything that can be
   clicked or drawn on. The hot spot is the tip of the arrow and of the
   finger. The system cursor shows a picture at its own size, so it gets the
   small copies (48 and 66 px wide). */
.md { cursor: url("../assets/minidraw/cursor-small.png") 2 2, auto; }
.md a, .md button, .md [data-coming-soon], .md .is-drawable {
  cursor: url("../assets/minidraw/pointer-small.png") 2 2, pointer;
}
/* the hand stays a hand over the text and pictures inside a drawing area */
.md .is-drawable * { cursor: inherit; }

/* With a mouse, minidraw.js hides the system cursor and draws its own, 1.5×
   bigger, that turns from the arrow into the hand and back with a little
   spring. The rules above stay as the fallback: without script, on touch
   screens, and while the popup is open (it sits above everything on the
   page, the drawn cursor included). */
.md-own-cursor, .md-own-cursor * { cursor: none !important; }
.md-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  will-change: transform;
}
.md-cursor.is-on { opacity: 1; }
.md-cursor img {
  position: absolute;
  max-width: none;
  transition: opacity .16s ease, scale .26s cubic-bezier(.3, 1.6, .5, 1), rotate .26s cubic-bezier(.3, 1.6, .5, 1);
}
/* each picture is placed so that its tip sits exactly on the pointer */
/* the files are about 3.5× bigger than shown, so they stay sharp on Retina */
.md-cursor .arrow { width: 72px; left: -3px; top: -3px; transform-origin: 3px 3px; }
.md-cursor .hand { width: 99px; left: -3px; top: -3px; transform-origin: 3px 3px; opacity: 0; scale: .4; rotate: 25deg; }
.md-cursor.is-hand .arrow { opacity: 0; scale: .4; rotate: -25deg; }
.md-cursor.is-hand .hand { opacity: 1; scale: 1; rotate: 0deg; }
.md-cursor.is-down:not(.is-hand) .arrow, .md-cursor.is-down.is-hand .hand { scale: .86; }
@media (prefers-reduced-motion: reduce) { .md-cursor img { transition: none; } }

/* ---------- Header ----------
   Floats above the page: the same gap to the top and to both sides, rounded
   corners and the sticker outline. */
.md .site-header {
  position: fixed;
  top: var(--md-gap);
  left: var(--md-gap);
  right: var(--md-gap);
  background: rgba(128, 44, 255, 0.94);
  border: var(--md-line);
  border-radius: 22px;
  box-shadow: 4px 5px 0 var(--md-ink);
}
.md .site-header .nav { height: calc(var(--md-header-h) - 6px); }
.md .site-header .container { max-width: none; padding-inline: 12px; }
.md .site-header .brand { color: #fff; }
.md .brand-mark { border-radius: 12px; box-shadow: 0 0 0 2px var(--md-ink), 2px 3px 0 var(--md-ink); }
.md .nav-links a { color: #fff; }
.md .nav-links a:hover { color: var(--md-yellow); }
@media (max-width: 960px) { .md .nav-links { gap: 18px; } .md .nav-links a { font-size: .92rem; } }
@media (max-width: 860px) { .md .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.md .md-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: var(--md-line);
  background: var(--md-yellow);
  color: var(--md-ink);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 3px 4px 0 var(--md-ink);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.md .md-btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--md-ink); }
.md .md-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--md-ink); transition-duration: .05s; }
.md .appstore-badge:active { transform: scale(.95); }
.md .md-btn--white { background: #fff; }

/* ---------- Hero ---------- */
.md .md-hero {
  /* The purple fills about 90% of the screen: the last 60px of the block sit
     under the curved top of the next one, so they are added on top. */
  min-height: calc(90vh + 60px);
  min-height: calc(90svh + 60px);
  display: flex;
  align-items: center;
  padding: calc(var(--md-header-space) + 48px) 0 120px;
}
.md .md-hero::after {
  /* curved bottom edge into the page */
  content: "";
  position: absolute;
  left: -10%; right: -10%; bottom: -60px;
  height: 120px;
  background: var(--md-paper);
  border-radius: 50% 50% 0 0;
  border-top: 4px solid var(--md-ink);
}
.md .md-hero > .container { position: relative; z-index: 1; }
.md .md-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.md .md-hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin: 0 0 26px; }
.md .md-hero .lead {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
  max-width: 38ch;
  margin: 0;
}
.md .md-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 30px; }

.md .md-hero-art { position: relative; margin: 0; padding: 0 0 40px 40px; }
.md .md-hero-art .frame {
  border: 6px solid var(--md-ink);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 10px 12px 0 var(--md-ink);
  transform: rotate(3deg);
}
.md .md-hero-art .frame img { width: 100%; height: auto; }
.md .md-hero-art .mimi {
  position: absolute;
  left: -14px; bottom: -14px;
  width: 38%;
}
@media (max-width: 900px) {
  .md .md-hero { padding: calc(var(--md-header-space) + 36px) 0 104px; }
  .md .md-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .md .md-hero-art { padding: 0 8px 28px 28px; max-width: 560px; }
}

/* ---------- Section heads ---------- */
.md section { position: relative; scroll-margin-top: var(--md-header-space); }
.md .md-head { text-align: center; margin-bottom: 48px; }
.md .md-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
.md .md-head p { max-width: 56ch; margin-inline: auto; font-size: 1.08rem; }

/* ---------- Screenshots ----------
   Without script this is a plain strip that scrolls sideways. minidraw.js adds
   .is-pinned: the section grows by the strip's width, the inner panel sticks
   to the screen, and scrolling the page (or dragging / swiping the strip)
   moves the shots sideways until the last one is in view. */
.md .md-shots-section { padding: 72px 0 40px; }
.md .md-shots-section .md-head { margin-bottom: 14px; }
.md .md-shots {
  --shot-h: clamp(300px, calc(100svh - 330px), 760px);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 22px max(22px, calc((100vw - var(--max-w)) / 2 + 22px)) 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--md-purple) transparent;
  -webkit-overflow-scrolling: touch;
}
.md .md-shot {
  --tilt: -1.5deg;
  --f: 1;               /* 1 = the shot in the middle of the screen (minidraw.js) */
  flex: 0 0 auto;
  height: min(var(--shot-h), calc(80vw * 4 / 3));
  aspect-ratio: 3 / 4;
  margin: 0;
  scroll-snap-align: center;
  border: 4px solid var(--md-ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--md-purple);
  box-shadow: var(--md-drop);
  transform: rotate(calc(var(--tilt) * (1 - var(--f)))) scale(calc(0.9 + 0.1 * var(--f)));
}
.md .md-shot:nth-child(even) { --tilt: 1.5deg; }
.md .md-shot.is-active { box-shadow: 9px 11px 0 var(--md-ink); }
@media (hover: hover) {
  .md .md-shot { transition: box-shadow .2s ease; }
  .md .md-shot:hover { box-shadow: 10px 13px 0 var(--md-ink); }
}
.md .md-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.md .md-shots-foot { display: grid; justify-items: center; gap: 10px; }
.md .md-shots-progress {
  display: none;
  width: min(300px, 60vw);
  height: 14px;
  border: var(--md-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.md .md-shots-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--md-yellow);
  border-right: 3px solid var(--md-ink);
}
.md .md-shots-hint {
  text-align: center;
  font-weight: 800;
  font-size: .95rem;
  margin: 0;
  color: var(--md-ink-soft);
}

.md .md-shots-section.is-pinned { padding: 0; }
.md .is-pinned .md-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-top: var(--md-header-space);   /* the floating site header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.md .is-pinned .md-shots {
  /* the first and the last shot can both reach the middle of the screen */
  padding-inline: calc(50% - min(var(--shot-h) * 0.75, 80vw) / 2);
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;   /* sideways swipes come to the script */
}
.md .is-pinned .md-shots-progress { display: block; }

/* ---------- Features ---------- */
.md .md-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .md .md-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .md .md-feature-grid { grid-template-columns: 1fr; } }

.md .md-card {
  background: #fff;
  border: var(--md-line);
  border-radius: 28px;
  box-shadow: var(--md-drop);
  transition: transform .2s ease, box-shadow .2s ease;
}
.md .md-feature { padding: 28px 28px 26px; }
.md .md-feature:hover { transform: translate(-2px, -3px); box-shadow: var(--md-drop-hover); }
.md .md-feature .badge-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 20px;
  border: var(--md-line);
  background: var(--tint, var(--md-yellow));
  margin-bottom: 18px;
  transform: rotate(-4deg);
}
.md .md-feature .badge-icon img { width: 38px; height: 38px; object-fit: contain; }
.md .md-feature:nth-child(1) { --tint: var(--md-yellow); }
.md .md-feature:nth-child(2) { --tint: var(--md-cyan); }
.md .md-feature:nth-child(3) { --tint: var(--md-pink); }
.md .md-feature:nth-child(4) { --tint: var(--md-lime); }
.md .md-feature:nth-child(5) { --tint: var(--md-orange); }
.md .md-feature:nth-child(6) { --tint: #C9B2FF; }
.md .md-feature h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.md .md-feature p { margin: 0; font-size: 1rem; }

/* ---------- What's inside ---------- */
.md .md-inside {
  background-color: var(--md-blue);
  background-image: var(--md-stars);
  background-size: 200px 200px;
  border-top: 4px solid var(--md-ink);
  border-bottom: 4px solid var(--md-ink);
}
.md .md-inside .md-head p { color: #fff; }
.md .md-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .md .md-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.md .md-stat {
  padding: 26px 14px 22px;
  text-align: center;
  background: var(--tint);
}
.md .md-stat:nth-child(1) { --tint: var(--md-yellow); transform: rotate(-2deg); }
.md .md-stat:nth-child(2) { --tint: var(--md-pink); transform: rotate(1.5deg); }
.md .md-stat:nth-child(3) { --tint: var(--md-cyan); transform: rotate(-1deg); }
.md .md-stat:nth-child(4) { --tint: var(--md-lime); transform: rotate(2deg); }
.md .md-stat:nth-child(5) { --tint: var(--md-orange); transform: rotate(-1.5deg); }
@media (max-width: 900px) { .md .md-stat:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); } }
.md .md-stat .stat-num {
  display: block;
  color: var(--md-ink);
  text-shadow: 0.05em 0.08em 0 rgba(255, 255, 255, 0.75);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 8px;
}
.md .md-stat .stat-label { display: block; font-weight: 900; color: var(--md-ink); font-size: 1rem; }
.md .md-inside .note {
  color: #fff;
  font-weight: 700;
  text-align: center;
  max-width: 64ch;
  margin: 40px auto 0;
}

/* ---------- For parents ---------- */
.md .md-parents {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
  padding: 0 24px;
  max-width: 940px;
  margin-inline: auto;
}
.md .md-parents img { width: 100%; height: auto; transform: rotate(-4deg); }
.md .md-parents h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.md .md-parents p { font-size: 1.28rem; font-weight: 700; line-height: 1.55; color: var(--md-ink); margin: 0; }
@media (max-width: 700px) {
  .md .md-parents { grid-template-columns: 1fr; padding: 0; text-align: center; gap: 12px; }
  .md .md-parents img { width: 160px; margin-inline: auto; }
}

/* ---------- Get the app ---------- */
.md .md-get {
  padding: 104px 0 112px;
  text-align: center;
  border-top: 4px solid var(--md-ink);
  border-bottom: 4px solid var(--md-ink);
}
.md .md-get::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--md-purple-2);
  border-radius: 52% 48% 44% 56% / 46% 58% 42% 54%;
  opacity: .85;
}
.md .md-get > .container { position: relative; z-index: 1; }
.md .md-get-art {
  position: relative;
  width: clamp(190px, 26vw, 260px);
  margin: 0 auto 38px;
}
.md .md-get-art .app-icon {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22.5%;
  border: 6px solid var(--md-ink);
  box-shadow: 10px 12px 0 var(--md-ink);
  overflow: hidden;
  background: #fff;
  transform: rotate(-5deg);
  animation: md-float 3.6s ease-in-out infinite;
}
.md .md-get-art .app-icon img { width: 100%; height: 100%; display: block; }
.md .md-get-art .app-icon::after {
  /* a glint that runs across the icon every few seconds */
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.65) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: md-glint 3.6s ease-in-out infinite;
}
.md .md-get-art .app-icon:hover { animation: md-wiggle .6s ease-in-out; }
@keyframes md-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
@keyframes md-glint {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}
@keyframes md-wiggle {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  25% { transform: rotate(4deg) scale(1.06); }
  50% { transform: rotate(-8deg) scale(1.06); }
  75% { transform: rotate(2deg) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .md .md-get-art .app-icon, .md .md-get-art .app-icon::after { animation: none; }
}
.md .md-get h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 14px; }
.md .md-get .app-meta { color: rgba(255, 255, 255, 0.88); font-weight: 700; margin-bottom: 30px; }
.md .md-get .appstore-badge img { height: 64px; }

/* ---------- Support ---------- */
.md .md-contact {
  padding: 48px 40px;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}
.md .md-contact h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.md .md-contact p { margin-bottom: 26px; }

/* ---------- "Coming soon" popup on the App Store badges ---------- */
.md .md-soon {
  width: min(440px, calc(100vw - 32px));
  padding: 34px 30px 30px;
  border: 4px solid var(--md-ink);
  border-radius: 32px;
  background: var(--md-purple) var(--md-stars);
  background-size: 200px 200px;
  box-shadow: 10px 12px 0 var(--md-ink);
  color: #fff;
  text-align: center;
  overflow: visible;
}
.md .md-soon::backdrop { background: rgba(44, 0, 102, 0.55); }
.md .md-soon[open] { animation: md-pop .28s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes md-pop { from { transform: scale(.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .md .md-soon[open] { animation: none; } }
.md .md-soon img { width: 150px; height: auto; margin: -96px auto 6px; }
.md .md-soon h2 { font-size: 2.6rem; margin: 0 0 14px; }
.md .md-soon p { color: #fff; font-weight: 700; margin: 0 0 24px; }

/* ---------- Motion ----------
   Everything here is decoration: without script, or with "Reduce motion"
   switched on, the page shows the same content standing still. Entrance
   animations use the separate translate / scale / rotate properties, so they
   add to the tilts the cards and headings already have in transform. */
.md .md-trail {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.md .md-get-art .spark {
  position: absolute;
  width: 34px; aspect-ratio: 1;
  background: var(--md-yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  scale: 0;
}
.md .md-get-art .spark--1 { left: -22%; top: 8%; }
.md .md-get-art .spark--2 { right: -20%; top: -6%; width: 24px; background: var(--md-cyan); }
.md .md-get-art .spark--3 { right: -26%; bottom: 18%; background: #fff; }
.md .md-get-art .spark--4 { left: -14%; bottom: -4%; width: 22px; background: var(--md-pink); }
.md .confetti {
  position: absolute;
  z-index: 100;
  width: 12px; height: 16px;
  border-radius: 3px;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Stars drift slowly behind the purple and blue bands. */
  .md .md-starry, .md .md-inside { animation: md-drift 70s linear infinite; }
  @keyframes md-drift { to { background-position: 200px -200px; } }

  /* Scroll reveals, set up by minidraw.js. */
  .md .reveal-wait { opacity: 0; }
  /* One quiet entrance for everything: a short fade and a small rise. */
  .md .reveal-in { animation: md-rise .7s cubic-bezier(.25, .8, .35, 1) var(--d, 0ms) backwards; }
  @keyframes md-rise { from { opacity: 0; translate: 0 18px; } }

  /* Hero, on load. */
  .md .md-hero h1 { animation: md-rise .7s cubic-bezier(.25, .8, .35, 1) .05s backwards; }
  .md .md-hero .lead { animation: md-rise .7s cubic-bezier(.25, .8, .35, 1) .15s backwards; }
  .md .md-hero-cta { animation: md-rise .7s cubic-bezier(.25, .8, .35, 1) .25s backwards; }
  .md .md-hero-art { animation: md-rise .8s cubic-bezier(.25, .8, .35, 1) .2s backwards; }
  .md .md-hero-art .frame { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 10px); transition: translate .3s ease-out; }
  .md .md-hero-art .mimi {
    transform-origin: 50% 90%;
    translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px);
    transition: translate .3s ease-out;
    animation: md-hello .7s cubic-bezier(.25, .8, .35, 1) .45s backwards, md-sway 4.5s ease-in-out 1.2s infinite;
  }
  @keyframes md-hello { from { opacity: 0; scale: .9; } }
  @keyframes md-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }

  /* Cards. */
  .md .md-feature:hover .badge-icon { animation: md-wiggle-rot .55s ease-in-out; }
  .md .md-stat:hover { animation: md-jelly .55s ease-in-out; }
  @keyframes md-wiggle-rot { 25% { rotate: 14deg; } 50% { rotate: -10deg; } 75% { rotate: 5deg; } }
  @keyframes md-jelly { 30% { scale: 1.08 .92; } 55% { scale: .95 1.06; } 80% { scale: 1.02 .98; } }

  .md .md-parents img { animation: md-bob 3.2s ease-in-out infinite; }
  @keyframes md-bob { 50% { translate: 0 -10px; } }

  .md .md-shots-hint .nudge { display: inline-block; animation: md-nudge 1.4s ease-in-out infinite; }
  @keyframes md-nudge { 50% { translate: 6px 0; } }

  .md .md-get-art .spark { animation: md-twinkle 2.6s ease-in-out infinite; }
  .md .md-get-art .spark--2 { animation-delay: .7s; }
  .md .md-get-art .spark--3 { animation-delay: 1.3s; }
  .md .md-get-art .spark--4 { animation-delay: 1.9s; }
  @keyframes md-twinkle { 0%, 100% { scale: 0; rotate: 0deg; } 40% { scale: 1; rotate: 40deg; } 70% { scale: 0; rotate: 90deg; } }
}

/* ---------- Footer ---------- */
.md .site-footer { background: var(--md-ink); }
.md .site-footer .brand { color: #fff; }
.md .footer-blurb { color: rgba(255, 255, 255, 0.7); max-width: 36ch; }
.md .footer-blurb a { color: #fff; text-decoration: underline; }
