/* The Mute demo in "How Mute works". The phone screen uses Mute's own tokens
   (background #0A0A0A, ink #F5F0E8, gold #E8C170, Cormorant Garamond and
   DM Sans); the column beside it is the site's frame. Built by
   /assets/mute-demo.js. */

.mud {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  border-radius: 14px;
  background: #F6EEDC;
  background: oklch(0.95 0.025 85);
  font-family: 'DM Sans', sans-serif;
  font-stretch: 100%;
  --mu-scale: 1;
}
.mud button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; }

/* ---------------------------------------------------------------- phone */

.mu-phone-box { flex: none; width: calc(316px * var(--mu-scale)); height: calc(636px * var(--mu-scale)); }
.mu-phone {
  position: relative; width: 316px; height: 636px; box-sizing: border-box; overflow: hidden;
  border: 8px solid var(--ink); border-radius: 46px; background: #0A0A0A;
  transform: scale(var(--mu-scale)); transform-origin: 0 0;
  user-select: none; -webkit-user-select: none;
}
/* Built at the app's natural size so its type and 44pt targets stay true, then scaled to the 300px screen. */
.mu-app {
  position: absolute; left: 0; top: 0; width: 372px; height: 768px; overflow: hidden;
  transform: scale(.8065); transform-origin: 0 0;
  color: #F5F0E8; font-family: 'DM Sans', sans-serif;
}
.mu-status {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; z-index: 8; box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center; padding: 0 28px;
  font-size: 14px; font-weight: 600;
}
.mu-battery { width: 24px; height: 11px; border: 1.5px solid #F5F0E8; border-radius: 3px; }

.mu-screen { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.mu-screen.on { opacity: 1; }
.mu-column { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }

.mu-enso { display: block; overflow: visible; }
.mu-place { position: absolute; }
.mu-arc[data-part="home-arc"] { transition: stroke-dasharray .6s ease; }
.mu-arc-close.closing { transition: stroke-dasharray 1.2s cubic-bezier(.4, 0, .2, 1); }
.mu-seal { opacity: 0; transition: opacity .3s; }
.mu-seal.on { opacity: 1; }

.mu-menu {
  position: absolute; left: 24px; top: 44px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; color: #8F877D; font-size: 20px;
}
.mu-wordmark {
  position: absolute; left: 0; right: 0; top: 52px; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 22px; letter-spacing: .45em; text-indent: .45em;
}

.mu-pill {
  position: absolute; left: 24px; right: 24px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
}
.mu-gold { background: #E8C170; color: #0A0A0A; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.mu-outline-gold { border: 1px solid rgba(232, 193, 112, .55); color: #E8C170; font-size: 14px; font-weight: 500; }
.mu-outline-red { border: 1px solid rgba(196, 92, 74, .55); color: #C45C4A; font-size: 14px; font-weight: 500; }

/* ------------------------------------------------------------ set timer */

.mu-set-time {
  position: absolute; left: 0; right: 0; top: 304px; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 42px; letter-spacing: .03em;
}
.mu-set-unit { position: absolute; left: 0; right: 0; top: 360px; text-align: center; font-size: 13px; letter-spacing: .12em; color: #8F877D; }
.mu-chips { position: absolute; left: 36px; top: 392px; display: flex; gap: 8px; }
.mu-chip {
  height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1.5px solid #2A2A2A; color: #8F877D; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.mu-chip.on { border-color: #E8C170; background: #E8C170; color: #0A0A0A; font-weight: 600; }
.mu-hint { position: absolute; left: 24px; right: 24px; top: 530px; text-align: center; font-size: 15px; line-height: 1.5; color: #8F877D; }
.mu-home-links { position: absolute; left: 0; right: 0; top: 600px; display: flex; justify-content: center; gap: 10px; }
.mu-link {
  height: 44px; padding: 0 16px; box-sizing: border-box; display: flex; align-items: center;
  border-radius: 999px; border: 1px solid rgba(232, 193, 112, .4); font-size: 14px; color: #8F877D;
}
.mu-link-gold { color: #E8C170; }

/* -------------------------------------------------------- deposit sheet */

.mu-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.mu-dim.on { opacity: 1; }
.mu-sheet {
  position: absolute; left: 0; right: 0; top: 384px; height: 384px; box-sizing: border-box; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 24px 0;
  border-radius: 24px 24px 0 0; background: #141414;
  transform: translateY(100%); transition: transform .45s cubic-bezier(.3, .8, .3, 1);
}
.mu-sheet.on { transform: translateY(0); }
.mu-sheet-title { font-size: 20px; font-weight: 600; margin-top: 16px; }
.mu-sheet-text { font-size: 15px; line-height: 1.55; color: #8F877D; margin-top: 12px; }

/* ------------------------------------------------------- session active */

.mu-caption { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .2em; color: #8F877D; }
.mu-remaining {
  position: absolute; left: 0; right: 0; top: 390px; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 48px; letter-spacing: .03em;
}
.mu-percent { position: absolute; left: 0; right: 0; top: 476px; text-align: center; font-size: 14px; color: #8F877D; }
.mu-end-early {
  position: absolute; left: 121px; width: 130px; top: 560px; height: 44px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(232, 193, 112, .4); font-size: 13px; letter-spacing: .12em; color: #8F877D;
}

/* --------------------------------------------- shield (the system's own) */

.mu-shield {
  background: #0A0A0A; font-family: -apple-system, system-ui, sans-serif;
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 32px;
}
.mu-shield-title { margin-top: 290px; font-size: 22px; font-weight: 600; }
.mu-shield-text { margin-top: 14px; font-size: 16px; line-height: 1.45; color: #8F877D; }
.mu-shield-btn {
  position: absolute; left: 32px; right: 32px; top: 470px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: #E8C170; color: #0A0A0A; font-weight: 600; font-size: 17px;
}

/* ------------------------------------------------------------ gate, done */

.mu-gate-text { font-size: 15px; line-height: 1.5; color: #8F877D; margin-top: 12px; }
.mu-gate-time { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 28px; color: #E8C170; margin-top: 22px; }

.mu-done-ring { position: relative; width: 200px; height: 200px; margin-top: 96px; }
.mu-done-inside { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mu-done-word { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 52px; }
.mu-done-length { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 24px; color: #E8C170; }
.mu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: 36px; }
.mu-stats span { display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 13px; color: #8F877D; }
.mu-stats b { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 28px; color: #E8C170; }

.mu-ff {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%); z-index: 7;
  padding: 8px 14px; border-radius: 999px; background: #141414; border: 1px solid #2A2A2A;
  font-size: 13px; color: #8F877D; white-space: nowrap; opacity: 0; transition: opacity .3s;
}
.mu-ff.on { opacity: 1; }

.mu-finger {
  position: absolute; z-index: 9; width: 44px; height: 44px; margin: -22px 0 0 -22px; box-sizing: border-box;
  border-radius: 50%; background: rgba(245, 240, 232, .18); border: 2px solid rgba(245, 240, 232, .6);
  pointer-events: none;
  transition: left .55s cubic-bezier(.4, 0, .2, 1), top .55s cubic-bezier(.4, 0, .2, 1), transform .15s, opacity .3s;
}

/* Reduced motion: crossfades only. The finger jumps, the sheet fades in
   instead of sliding, the rings land without filling. The seal still appears. */
.mu-reduce .mu-finger { transition: opacity .3s; }
.mu-reduce .mu-sheet { transform: none; opacity: 0; transition: opacity .3s; }
.mu-reduce .mu-sheet.on { opacity: 1; }
.mu-reduce .mu-arc, .mu-reduce .mu-arc-close.closing { transition: none; }

/* ------------------------------------------------------- chapter column */

.mu-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; color: var(--ink); }
.mud .mu-chapter {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px;
  padding: 16px 16px 18px; border-top: 1.5px solid var(--ink); text-align: left; cursor: pointer;
}
.mud .mu-chapter.active { background: var(--paper); border-radius: 0 0 10px 10px; }
.mu-chapter-n { font-size: 13px; letter-spacing: .04em; padding-top: 4px; }
.mu-chapter-title { font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 700; font-size: 20px; line-height: 1.25; }
.mu-chapter-text { font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.mu-chapter-text[hidden] { display: none; }
.mu-chapter-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); }

.mu-buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 20px; border-top: 1.5px solid var(--ink); }
/* The site's pill, not one of Mute's in-app buttons. */
.mud .mu-play {
  display: inline-flex; align-items: center; height: 56px; padding: 0 28px; box-sizing: border-box;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 700; font-size: 16px; cursor: pointer;
}
.mu-note { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
