/* ==========================================================================
   MOCKS - generated phone UIs and cover compositions.
   Replace with real images by adding `src` in the project content file.
   ========================================================================== */

.tinted { --t: var(--tint); --a: var(--pa); --tk: var(--tink, #0F0F0F); --ts: var(--tsoft, var(--tint)); }

/* ---------- Cover composition ---------- */
.cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(72% 56% at 50% 118%, color-mix(in srgb, var(--a) 34%, transparent), transparent 70%),
    var(--t);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(64% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(64% 60% at 50% 40%, #000, transparent);
  pointer-events: none;
}

.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cover__phone {
  --pw: min(28cqw, 36cqh);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--pw);
  translate: -50% -46%;
  will-change: transform;
}
.cover__phone > :is(.m-phone, .cover__shot) { transition: transform 1120ms var(--ease-out); }

/* Real screens: device mockups carry their own frame; flat screens get a rounded edge */
.cover__shot { display: block; width: 100%; height: auto; filter: drop-shadow(0 32px 40px rgba(0, 0, 0, 0.4)); }
.cover__shot--flat { border-radius: calc(var(--pw) * 0.12); filter: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 72px -24px rgba(0, 0, 0, 0.64); }

.cover--3 .cover__phone:nth-child(1) { z-index: 1; translate: calc(-50% - var(--pw) * 0.8) -40%; }
.cover--3 .cover__phone:nth-child(1) > :is(.m-phone, .cover__shot) { transform: rotate(-6deg) scale(0.9); }
.cover--3 .cover__phone:nth-child(2) { z-index: 3; }
.cover--3 .cover__phone:nth-child(3) { z-index: 2; translate: calc(-50% + var(--pw) * 0.8) -36%; }
.cover--3 .cover__phone:nth-child(3) > :is(.m-phone, .cover__shot) { transform: rotate(6deg) scale(0.9); }

.cover--2 .cover__phone:nth-child(1) { z-index: 1; translate: calc(-50% - var(--pw) * 0.48) -44%; }
.cover--2 .cover__phone:nth-child(1) > :is(.m-phone, .cover__shot) { transform: rotate(-5deg); }
.cover--2 .cover__phone:nth-child(2) { z-index: 2; translate: calc(-50% + var(--pw) * 0.48) -40%; }
.cover--2 .cover__phone:nth-child(2) > :is(.m-phone, .cover__shot) { transform: rotate(5deg); }

@media (hover: hover) and (pointer: fine) {
  a:hover .cover--3 .cover__phone:nth-child(1) > :is(.m-phone, .cover__shot) { transform: rotate(-9deg) scale(0.9) translateX(-4%); }
  a:hover .cover--3 .cover__phone:nth-child(3) > :is(.m-phone, .cover__shot) { transform: rotate(9deg) scale(0.9) translateX(4%); }
  a:hover .cover--3 .cover__phone:nth-child(2) > :is(.m-phone, .cover__shot) { transform: translateY(-2%); }
  a:hover .cover--2 .cover__phone:nth-child(1) > :is(.m-phone, .cover__shot) { transform: rotate(-8deg) translateX(-4%); }
  a:hover .cover--2 .cover__phone:nth-child(2) > :is(.m-phone, .cover__shot) { transform: rotate(8deg) translateX(4%); }
}

.cover__chip {
  position: absolute;
  z-index: 6;
  top: 8%;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 1000px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-m);
  font-size: var(--fs-label);
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  animation: chip-float 6s ease-in-out infinite;
}
.cover__chip i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--a); color: #fff; }
.cover__chip svg { width: 12px; height: 12px; }
@keyframes chip-float { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cover__chip { animation: none; } }

/* ---------- Phone frame ---------- */
.m-phone {
  --m-bg: #FFFFFF;
  --m-card: #F2F2EF;
  --m-ink: #111111;
  --m-ink-2: #66665F;
  --m-ink-3: #9C9C95;
  --m-line: rgba(17, 17, 17, 0.08);
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.3;
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #3A3A3D, #151516 35%, #26262A);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 20px 40px -20px rgba(17, 17, 17, 0.36),
    0 48px 88px -48px rgba(17, 17, 17, 0.36);
  container-type: inline-size;
  user-select: none;
}

.m-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12.6% / 5.9%;
  overflow: hidden;
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: var(--font-sans);
  font-size: 4.6cqw;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.m-island { position: absolute; top: 2.3%; left: 50%; width: 30%; height: 3.5%; translate: -50% 0; border-radius: 99px; background: #000; z-index: 5; }
.m-status { display: flex; justify-content: space-between; align-items: center; padding: 1em 1.9em 0.2em; font-size: 0.78em; font-weight: 600; height: 3.4em; }
.m-status__icons { display: flex; gap: 0.35em; align-items: center; }
.m-status__icons i { display: block; width: 0.28em; background: currentColor; border-radius: 1px; }
.m-status__icons i:nth-child(1) { height: 0.4em; } .m-status__icons i:nth-child(2) { height: 0.6em; }
.m-status__icons i:nth-child(3) { height: 0.8em; }
.m-status__icons b { width: 1.8em; height: 0.85em; margin-left: 0.3em; border-radius: 0.25em; box-shadow: inset 0 0 0 1px currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 70%); background-clip: content-box; padding: 0.15em; }

.m-appbar { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0.4em 1.3em 0.6em; }
.m-appbar__title { font-weight: 600; font-size: 1em; }
.m-icon { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; background: var(--m-card); color: var(--m-ink); }
.m-icon svg { width: 1em; height: 1em; }

.m-body { flex: 1; display: flex; flex-direction: column; gap: 0.8em; padding: 0.2em 1.2em 0; min-height: 0; }
.m-foot { padding: 0.8em 1.2em 0; }
.m-home { width: 36%; height: 0.32em; margin: 0.9em auto 0.7em; border-radius: 99px; background: var(--m-ink); opacity: 0.85; }

.m-h { font-size: 1.45em; font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; }
.m-label { font-size: 0.72em; color: var(--m-ink-2); }
.m-small { font-size: 0.72em; color: var(--m-ink-3); }
.m-muted { color: var(--m-ink-2); }
.m-accent { color: var(--a); }

.m-card { border-radius: 1.1em; background: var(--m-card); padding: 0.95em; }
.m-card--accent { background: var(--a); color: #fff; }
.m-card--accent .m-label, .m-card--accent .m-small { color: rgba(255, 255, 255, 0.75); }
.m-card--line { background: transparent; box-shadow: inset 0 0 0 1px var(--m-line); }

.m-amount { font-size: 2.5em; font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; }
.m-amount small { font-size: 0.55em; font-weight: 500; margin-right: 0.08em; vertical-align: 0.35em; }
.m-amount--xl { font-size: 3.1em; }

.m-row { display: flex; align-items: center; gap: 0.7em; padding: 0.5em 0; }
.m-row + .m-row { border-top: 1px solid var(--m-line); }
.m-row__main { flex: 1; min-width: 0; }
.m-row__title { font-size: 0.86em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row__sub { font-size: 0.7em; color: var(--m-ink-3); }
.m-row__end { font-size: 0.86em; font-weight: 600; text-align: right; }

.m-avatar { flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; font-size: 0.78em; font-weight: 600; color: #fff; }
.m-avatars { display: flex; }
.m-avatars .m-avatar { box-shadow: 0 0 0 0.18em var(--m-bg); }
.m-avatars .m-avatar + .m-avatar { margin-left: -0.6em; }

.m-btn { display: grid; place-items: center; height: 3.1em; border-radius: 1.55em; background: var(--a); color: #fff; font-weight: 600; font-size: 0.9em; }
.m-btn--dark { background: var(--m-ink); color: var(--m-bg); }
.m-btn--ghost { background: var(--m-card); color: var(--m-ink); }

.m-tag { display: inline-flex; align-items: center; gap: 0.3em; height: 1.7em; padding: 0 0.65em; border-radius: 1em; font-size: 0.66em; font-weight: 600; background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--a); }
.m-tag--warn { background: rgba(214, 120, 30, 0.14); color: #C2621A; }
.m-tag--grey { background: var(--m-card); color: var(--m-ink-2); }

.m-chips { display: flex; flex-wrap: wrap; gap: 0.4em; }
.m-chip { height: 2.1em; padding: 0 0.85em; border-radius: 1.05em; display: grid; place-items: center; font-size: 0.72em; font-weight: 500; background: var(--m-card); }
.m-chip.is-on { background: var(--m-ink); color: var(--m-bg); }

.m-bar { height: 0.45em; border-radius: 1em; background: var(--m-card); overflow: hidden; }
.m-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--a); }

.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.m-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

.m-check { display: grid; place-items: center; width: 4.6em; height: 4.6em; border-radius: 50%; background: var(--a); color: #fff; box-shadow: 0 0 0 0.7em color-mix(in srgb, var(--a) 16%, transparent), 0 0 0 1.5em color-mix(in srgb, var(--a) 7%, transparent); }
.m-check svg { width: 2em; height: 2em; }

.m-steps { display: grid; gap: 0.2em; }
.m-step { display: flex; gap: 0.7em; align-items: center; padding: 0.55em 0; }
.m-step__dot { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; font-size: 0.7em; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--m-line); color: var(--m-ink-3); }
.m-step.is-done .m-step__dot { background: var(--a); color: #fff; box-shadow: none; }
.m-step.is-now .m-step__dot { box-shadow: inset 0 0 0 1.5px var(--a); color: var(--a); }
.m-step__dot svg { width: 0.9em; height: 0.9em; }

.m-slider { position: relative; height: 0.4em; border-radius: 1em; background: var(--m-card); margin: 1.1em 0 0.6em; }
.m-slider > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--a); }
.m-slider > b { position: absolute; top: 50%; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; translate: -50% -50%; box-shadow: 0 0 0 0.3em var(--a), 0 2px 6px rgba(0, 0, 0, 0.2); }

.m-chart { width: 100%; height: 7em; overflow: visible; }

.m-old { filter: saturate(0.15); }
.m-old .m-card { border-radius: 0.3em; }
.m-field { height: 2.6em; border-radius: 0.3em; box-shadow: inset 0 0 0 1px var(--m-line); display: flex; align-items: center; padding: 0 0.7em; font-size: 0.78em; color: var(--m-ink-3); }
