/* Free mockup generator (templates/mockup.php). Uses theme tokens from main.css. */
.mk { padding-top: clamp(48px, 6vw, 80px); }
.mk-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
.mk-form { position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.mk-step { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.mk-step span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11.5px; letter-spacing: 0; }
.mk-form .field input[type="text"], .mk-form .field textarea, .mk-form .field select { min-height: 44px; padding: 10px 12px; font-size: 15px; }
.mk-form .field textarea { min-height: 96px; }
.mk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-logo { position: relative; display: grid; place-items: center; min-height: 104px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: #fafaf8; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.mk-logo:hover, .mk-logo.is-over { border-color: #6a4dff; background: #f5f3ff; }
.mk-logo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mk-logo-ph { display: grid; justify-items: center; gap: 6px; pointer-events: none; font-size: 13px; }
.mk-logo-ph .ico { width: 22px; height: 22px; color: #6a4dff; }
.mk-logo-ph small { display: block; color: var(--dim); font-size: 11.5px; line-height: 1.3; }
.mk-logo img { max-width: 100%; max-height: 80px; object-fit: contain; pointer-events: none; }
.mk-logo-x { position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 0; background: #111113; color: #fff; }
.mk-logo-x .ico { width: 14px; height: 14px; }
.mk-colors { display: grid; gap: 8px; align-content: start; }
.mk-color { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.mk-color input { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.mk-color input::-webkit-color-swatch-wrapper { padding: 0; }
.mk-color input::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .1); border-radius: 6px; }
.mk-suggest { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: linear-gradient(90deg, var(--s1, #6a4dff) 0 14px, #fff 14px 26px, var(--s2, #ff6a3d) 26px 40px, #fff 40px); padding-left: 46px; font-size: 12px; font-weight: 500; text-align: left; }
.mk-suggest .ico { width: 13px; height: 13px; }
.mk-go { width: 100%; }
.mk-go[disabled] { opacity: .6; cursor: progress; }
.mk-note { margin: 0; font-size: 12.5px; color: var(--dim); text-align: center; }

.mk-out { min-width: 0; display: grid; gap: 14px; }
.mk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mk-tabs { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--bg-2); }
.mk-tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.mk-tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.mk-actions { display: flex; gap: 8px; }
.mk-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: end; min-height: 520px; padding: 28px; border-radius: var(--r-lg); background: #121214; background-image: radial-gradient(70% 80% at 80% 0%, rgba(91, 70, 255, .35), transparent 60%), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: auto, 18px 18px; overflow: hidden; }
.mk-stage[data-view="desktop"] { grid-template-columns: 1fr; }
.mk-stage[data-view="desktop"] .mk-phone { display: none; }
.mk-stage[data-view="mobile"] { grid-template-columns: minmax(0, 320px); justify-content: center; }
.mk-stage[data-view="mobile"] .mk-desk { display: none; }
.mk-desk { min-width: 0; border-radius: 10px; overflow: hidden; background: #1d1d22; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mk-desk-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; }
.mk-desk-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; } .mk-desk-bar i:nth-child(2) { background: #febc2e; } .mk-desk-bar i:nth-child(3) { background: #28c840; }
.mk-desk-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: #2a2a31; color: #a3a3ab; font-size: 11.5px; transform: translateX(-24px); }
.mk-desk-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.mk-phone { justify-self: center; width: 100%; max-width: 300px; padding: 8px; border-radius: 34px; background: #0b0b0e; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.mk-phone-view { position: relative; aspect-ratio: 9 / 19; overflow: hidden; border-radius: 27px; background: #fff; }
.mk-stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.mk-desk-view iframe { width: 1280px; }
.mk-phone-view iframe { width: 390px; }
.mk-stage:not(.has-mock) .mk-desk, .mk-stage:not(.has-mock) .mk-phone { opacity: .16; filter: grayscale(1); }
.mk-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; color: #f4f4f5; }
.mk-empty img, .mk-empty canvas { width: 150px; height: auto; image-rendering: pixelated; }
.mk-empty p { margin: 0; display: grid; gap: 4px; }
.mk-empty strong { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.mk-empty span { color: #a3a3ab; font-size: 14px; }
.mk-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(18, 18, 20, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; }
.mk-loading p { margin: 0; font-size: 15px; }
.mk-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #a99bff; animation: spin .8s linear infinite; }

.mk-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.mk-lead h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.045em; }
.mk-lead-copy p:not(.kicker) { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.mk-lead-form { gap: 14px; }
.mk-lead-form .btn-primary { --btn-bg: #111113; --btn-fg: #fff; }
.mk-thanks { margin: 0; padding: 22px; border-radius: 10px; background: #effaf4; color: var(--ok); font-weight: 500; }

@media (max-width: 1000px) {
  .mk-grid { grid-template-columns: 1fr; }
  .mk-form { position: static; }
  .mk-stage { grid-template-columns: 1fr; min-height: 0; padding: 18px; }
  .mk-stage[data-view="both"] .mk-desk { display: none; }
  .mk-stage[data-view="both"] .mk-phone { max-width: 290px; }
  .mk-lead { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .mk-row { grid-template-columns: 1fr; } .mk-form { padding: 18px; } .mk-actions .btn span { display: none; } }
