/* ==========================================================================
   MiniMon product page only (/apps/minimon/). Loaded after site.css and
   built from its tokens, so every theme works; no other page links it.
   ========================================================================== */

/* the soft glows behind the windows reach past the viewport: clip them (clip, not hidden: no scroll container) */
#main { overflow-x: clip; }

/* ---------- hero stage: real MiniMon windows, layered ---------- */
.mm-stage { position: relative; isolation: isolate; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 540 / 600; }
.mm-stage::before {
  content: ""; position: absolute; inset: -6% -14% -6% -10%; z-index: -1;
  background: radial-gradient(62% 56% at 40% 46%, color-mix(in srgb, var(--app) 50%, transparent), color-mix(in srgb, var(--app) 22%, transparent) 60%, transparent),
              radial-gradient(48% 44% at 84% 74%, color-mix(in srgb, #4a7bd8 42%, transparent), transparent);
  filter: blur(34px); animation: breathe 7s ease-in-out infinite;
}
.mm-win {
  position: absolute; margin: 0; border-radius: 14px; overflow: hidden; background: #1b1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 90px -36px var(--shadow-2), 0 24px 40px -30px var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.mm-win img { width: 100%; }
.mm-win--front { z-index: 2; width: 66%; left: 6%; top: 7%; }
.mm-win--back { z-index: 1; width: 56%; right: 0; top: 18%; filter: saturate(0.9) brightness(0.86); }
.mm-mini {
  position: absolute; z-index: 3; margin: 0; border-radius: 12px; overflow: hidden; background: #1b1d24;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 50px -18px var(--shadow-2);
  animation: float 8s ease-in-out infinite;
}
.mm-mini img { width: 100%; }
.mm-mini--rings { width: 44%; left: -2%; bottom: 4%; animation-delay: -3s; }
.mm-mini--bar { width: 38%; right: 0; top: 0; border-radius: 10px; animation-delay: -6s; }
.mm-live {
  position: absolute; z-index: 4; right: 6%; bottom: 9%;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text); background: var(--nav-bg);
  border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px -18px var(--shadow-2);
}
.mm-live i { width: 8px; height: 8px; border-radius: 50%; background: #5cd494; animation: pulse 2.6s ease-in-out infinite; }

/* CTA note under the hero buttons */
.mm-note { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.mm-note span { display: inline-flex; align-items: center; gap: 7px; }
.mm-note svg { width: 15px; height: 15px; color: var(--app-ink); }
.mm-note b { color: var(--text); font-weight: 600; }

/* metric marquee: app accent instead of gold */
.mm-marquee li::before { background: var(--app); box-shadow: 0 0 12px var(--app); }

/* ---------- numbers strip ---------- */
.mm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mm-stat {
  position: relative; padding: 26px 24px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--glass-2), var(--glass)); box-shadow: var(--card-shadow); overflow: hidden;
}
.mm-stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--app), transparent 75%); opacity: 0.85; }
.mm-stat b { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.mm-stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-2); }

/* ---------- showcase rows (real windows beside copy) ---------- */
.mm-row + .mm-row { margin-top: clamp(64px, 9vw, 120px); }
.mm-shot { position: relative; isolation: isolate; max-width: 430px; margin-inline: auto; }
.mm-shot::before {
  content: ""; position: absolute; inset: -8% -36%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--app) 46%, transparent) 40%, color-mix(in srgb, var(--app) 26%, transparent) 70%, transparent); filter: blur(28px);
}
.mm-row h2, .mm-plan h3, .section__head h2, .band h2 { text-wrap: balance; }
.mm-shot .mm-win { position: relative; }
.mm-shot--duo { max-width: 470px; aspect-ratio: 470 / 640; }
.mm-shot--duo .mm-win { position: absolute; }
.mm-shot--duo .mm-win:first-child { width: 70%; right: 0; top: 0; }
.mm-shot--duo .mm-win:last-child { width: 50%; left: 0; bottom: 0; z-index: 2; }
.mm-row h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 14px; }
.mm-row .split p { margin-top: 16px; }

/* Pro marker, used in headings, lists and the plan cards */
.mm-pro {
  display: inline-flex; align-items: center; padding: 3px 8px 2px; margin-left: 8px; border-radius: 6px; vertical-align: 2px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4;
  color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
}
.split li .mm-pro { margin-left: 6px; }

/* ---------- minimized shapes on a little desktop ---------- */
.mm-desk {
  position: relative; border-radius: 26px; padding: clamp(28px, 5vw, 56px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); box-shadow: 0 50px 100px -50px var(--shadow-2);
  background:
    radial-gradient(700px 360px at 12% 0%, color-mix(in srgb, var(--app) 32%, transparent), transparent 70%),
    radial-gradient(640px 420px at 100% 100%, rgba(74, 123, 216, 0.34), transparent 70%),
    linear-gradient(160deg, #141927, #0b0e16);
}
.mm-desk::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.mm-shapes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(22px, 3.4vw, 44px); }
.mm-shape { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mm-shape > span:first-child {
  display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 44px -20px rgba(0, 0, 0, 0.85); transition: transform 0.5s var(--ease);
}
.mm-shape:hover > span:first-child { transform: translateY(-6px); }
.mm-shape figcaption { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600; color: #e8e9ee; }
.mm-shape figcaption .mm-pro { margin-left: 8px; }
.mm-shape figcaption small { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #8fe0b4; }
.mm-desk__note { margin-top: clamp(26px, 4vw, 40px); text-align: center; color: #b9bfcc; font-size: 15px; }

/* ---------- Free and Pro side by side ---------- */
.mm-plans { display: grid; grid-template-columns: 1fr 1.08fr; gap: 20px; align-items: stretch; }
.mm-plan {
  position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 38px); border-radius: 24px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: var(--card-shadow); overflow: hidden; isolation: isolate;
}
.mm-plan--pro { border-color: color-mix(in srgb, var(--gold) 55%, var(--line-2)); box-shadow: 0 40px 90px -46px color-mix(in srgb, var(--gold) 60%, transparent), var(--card-shadow); }
.mm-plan--pro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 300px at 100% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); }
.mm-plan__head { display: flex; align-items: center; gap: 14px; }
.mm-plan__head img { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 12px 26px -12px var(--app), 0 0 0 1px var(--line); }
.mm-plan h3 { font-size: 24px; }
.mm-plan h3 .mm-pro { font-size: 12px; }
.mm-plan__sub { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.mm-plan ul { margin-top: 24px; display: grid; gap: 12px; }
.mm-plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text-2); }
.mm-plan li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--app-ink); }
.mm-plan--pro li svg { color: var(--gold-text); }
.mm-plan li b { color: var(--text); font-weight: 600; }
.mm-plan__foot { margin-top: auto; padding-top: 28px; }
.mm-plan__foot p { font-size: 14px; color: var(--muted); }
.mm-plan__foot .btn { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .mm-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .mm-stage { max-width: 460px; margin-top: 8px; }
  .mm-plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mm-stage { aspect-ratio: 540 / 640; }
  .mm-mini--bar { width: 46%; top: -2%; }
  .mm-live { right: 2%; bottom: 3%; font-size: 12px; }
  .mm-stat { padding: 20px 18px; }
  .mm-shot--duo { max-width: 360px; }
}
