/*
 * Home page hero: a ~13 second loop that shows Mailnaptic at work (brief, checks, approval, rehearsal, outro).
 * hero-demo.js builds it inside the hero window; without JavaScript, or with reduced motion, the static window stays.
 */
.mx-win.mn-demo-on > :not(.mnd) { display: none !important; }
.mn-demo-on { position: relative; min-height: 0; }
.mnd { --mnd-ink: #eceefc; --mnd-mute: #9ca1c6; --mnd-line: rgba(255,255,255,.1); --mnd-card: rgba(255,255,255,.045); --mnd-acc: #6366f1; --mnd-acc2: #4f46e5;
  --mnd-green: #34d399; --mnd-amber: #fbbf24;
  position: relative; width: 100%; height: 500px; overflow: hidden; color: var(--mnd-ink); font: 500 13.5px/1.45 -apple-system, "system-ui", "Segoe UI", Roboto, Arial, sans-serif; text-align: left; }
.mnd * { box-sizing: border-box; }
.mnd-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--mnd-line); background: rgba(255,255,255,.03); }
.mnd-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mnd-bar b { margin-left: auto; font-weight: 600; font-size: 12px; color: var(--mnd-mute); }
.mnd-stage { position: absolute; inset: 44px 0 0 0; padding: 18px 18px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); transition: opacity .7s ease, filter .7s ease, transform .7s ease; }
.mnd.mnd-out .mnd-stage { opacity: 0; filter: blur(10px); transform: scale(.985); }
.mnd-thread { display: flex; flex-direction: column; gap: 12px; transition: transform .9s cubic-bezier(.22,.8,.24,1); will-change: transform; }

/* everything that arrives starts hidden and is revealed by a class */
.mnd-i { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .55s ease, transform .6s cubic-bezier(.22,.8,.24,1); }
.mnd-i.mnd-show { opacity: 1; transform: none; }
.mnd-noanim .mnd-i, .mnd-noanim .mnd-thread, .mnd-noanim .mnd-stage { transition: none !important; }

.mnd-card { border: 1px solid var(--mnd-line); background: var(--mnd-card); border-radius: 12px; padding: 12px 14px; }
.mnd-who { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--mnd-mute); }
.mnd-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); flex: none; }
.mnd-brief { margin-top: 8px; font-size: 14.5px; font-weight: 600; color: #fff; min-height: 1.45em; }
.mnd-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #a5b4fc; animation: mnd-blink .8s steps(1) infinite; }
@keyframes mnd-blink { 50% { opacity: 0; } }

.mnd-status { display: flex; align-items: center; gap: 9px; padding: 0 4px; color: var(--mnd-mute); font-size: 13px; }
.mnd-status b { color: #fff; font-weight: 600; }
.mnd-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(165,180,252,.25); border-top-color: #a5b4fc; animation: mnd-spin .8s linear infinite; }
@keyframes mnd-spin { to { transform: rotate(360deg); } }
.mnd-tick { width: 16px; height: 16px; flex: none; border-radius: 50%; display: none; place-items: center; background: rgba(52,211,153,.18); color: var(--mnd-green); }
.mnd-tick svg { width: 10px; height: 10px; }
.mnd-status.mnd-done .mnd-spin { display: none; }
.mnd-status.mnd-done .mnd-tick { display: grid; }
.mnd-status .mnd-t-run, .mnd-status.mnd-done .mnd-t-ran { display: inline; }
.mnd-status .mnd-t-ran, .mnd-status.mnd-done .mnd-t-run { display: none; }

.mnd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 25px; }
.mnd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--mnd-line); background: rgba(255,255,255,.04); font-size: 11.5px; color: #d8dcf7; }
.mnd-chip svg { width: 11px; height: 11px; color: var(--mnd-green); }

.mnd-draft-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mnd-mute); }
.mnd-pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(251,191,36,.14); color: var(--mnd-amber); transition: background .3s ease, color .3s ease; white-space: nowrap; }
.mnd-pill.mnd-ok { background: rgba(52,211,153,.16); color: var(--mnd-green); }
.mnd-subject { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: #fff; }
.mnd-pre { font-size: 12px; color: var(--mnd-mute); }
.mnd-lines { margin-top: 9px; display: grid; gap: 6px; }
.mnd-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.22,.8,.24,1); }
.mnd-draft.mnd-show .mnd-lines i { transform: scaleX(var(--w, 1)); }
.mnd-draft.mnd-show .mnd-lines i:nth-child(2) { transition-delay: .12s; } .mnd-draft.mnd-show .mnd-lines i:nth-child(3) { transition-delay: .24s; } .mnd-draft.mnd-show .mnd-lines i:nth-child(4) { transition-delay: .36s; }
.mnd-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mnd-mute); }
.mnd-btn { appearance: none; border: 0; border-radius: 9px; padding: 8px 15px; font: 700 12.5px/1 inherit; color: #fff; background: var(--mnd-acc2); box-shadow: 0 6px 16px -8px rgba(79,70,229,.9); transition: transform .12s ease, background .25s ease, box-shadow .25s ease; cursor: default; }
.mnd-btn.mnd-press { transform: scale(.94); }
.mnd-btn.mnd-ok { background: rgba(52,211,153,.16); color: var(--mnd-green); box-shadow: none; }

.mnd-toast { position: absolute; left: 18px; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px; background: #fff; color: #14163a; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); font-size: 12px; }
.mnd-toast b { display: block; font-size: 13px; }
.mnd-toast small { color: #5d6285; font-size: 11.5px; }
.mnd-toast .mnd-av { width: 30px; height: 30px; font-size: 11px; position: relative; }
.mnd-toast .mnd-av::after { content: "1"; position: absolute; right: -4px; top: -4px; min-width: 14px; height: 14px; border-radius: 7px; background: #f97316; color: #fff; font-size: 9px; display: grid; place-items: center; }

.mnd-cursor { position: absolute; z-index: 6; left: 0; top: 0; width: 20px; height: 20px; pointer-events: none; opacity: 0; transition: transform 1s cubic-bezier(.4,.1,.2,1), opacity .3s ease; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.mnd-cursor svg { width: 20px; height: 20px; display: block; }
.mnd-cursor::after { content: ""; position: absolute; left: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; opacity: 0; transform: scale(.3); }
.mnd-cursor.mnd-click::after { animation: mnd-ring .5s ease-out; }
@keyframes mnd-ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.2); } }

/* rehearsal */
.mnd-reh-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mnd-mute); font-weight: 700; }
.mx-win.mx-win.mx-win .mnd .mnd-stats { margin-top: 9px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mnd-stat { border: 1px solid var(--mnd-line); border-radius: 10px; padding: 9px 11px; background: rgba(255,255,255,.035); }
.mnd-stat small { display: block; font-size: 11px; color: var(--mnd-mute); }
.mnd-stat strong { display: block; font-size: 20px; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.mnd-stat em { font-style: normal; font-size: 11px; color: var(--mnd-green); font-weight: 700; }
.mnd-stat em.mnd-flat { color: #fca5a5; }
.mnd-bars { margin-top: 10px; display: grid; gap: 8px; }
.mnd-bar-row { display: grid; gap: 4px; font-size: 12px; color: #cfd3f2; }
.mnd-bar-row span { display: flex; justify-content: space-between; }
.mnd-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.mnd-fill { height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #4f46e5, #818cf8); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.22,.8,.24,1); }
.mnd-show .mnd-fill, .mnd-fill.mnd-show { transform: scaleX(var(--w, .5)); }
.mnd-quote { border-left: 2px solid #818cf8; padding: 7px 11px; border-radius: 0 8px 8px 0; background: rgba(255,255,255,.04); font-size: 12.5px; color: #e4e6fb; }
.mnd-quote small { display: block; font-size: 11px; font-weight: 700; color: #a5b4fc; }
.mnd-fix { padding: 8px 12px; border-radius: 9px; background: rgba(52,211,153,.12); color: var(--mnd-green); font-weight: 700; font-size: 12.5px; }

/* outro */
.mnd-outro { position: absolute; inset: 44px 0 0 0; z-index: 4; display: grid; place-items: center; text-align: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.mnd.mnd-out .mnd-outro { opacity: 1; }
.mnd-outro img { height: 34px; width: auto; margin: 0 auto 14px; display: block; }
.mnd-outro p { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: #fff; max-width: 330px; }
.mnd-float { position: absolute; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--mnd-line); background: rgba(255,255,255,.07); color: #d8dcf7; font-size: 12px; font-weight: 600; opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .6s ease, transform .9s cubic-bezier(.22,.8,.24,1); }
.mnd.mnd-out .mnd-float { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

@media (max-width: 860px) {
  .mnd { height: 470px; font-size: 12.5px; }
  .mx-win.mx-win.mx-win .mnd .mnd-stats { gap: 6px; }
  .mnd-stat { padding: 8px 8px; }
  .mnd-stat small { font-size: 10px; }
  .mnd-stat strong { font-size: 16px; }
  .mnd-stat em { display: none; }
  .mnd-toast { display: none; }
  .mnd-outro p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .mnd { display: none; } .mx-win.mn-demo-on > :not(.mnd) { display: revert !important; } }

/* reserve the demo's height from the first paint, so nothing moves when it is built */
.mx-secHero .mx-win.mx-winD { min-height: 502px; }
@media (max-width: 860px) { .mx-secHero .mx-win.mx-winD { min-height: 472px; } }
