/* signitur — MUST START A TRIAL paywall (SAMPLE for owner review, Oct 25 2026; js/mustpay.js).
 * Inert unless js/mustpay.js opens it (its switch is OFF in production). Same language as the trial
 * pop-up (css/paywall.css "POPUPS v3"): white card, orange accents, the system font. */
html.mt-gate-open, html.mt-gate-open body { overflow: hidden; }

.mt-overlay { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(22, 17, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #161110;
  animation: mtFade .22s ease both; }
@keyframes mtFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mtRise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.mt-modal { position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
  background: #FFFFFF; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(22, 17, 16, .45), 0 0 0 1px rgba(30, 18, 9, .06);
  animation: mtRise .32s cubic-bezier(.2, .9, .3, 1) both; }
.mt-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 30px 32px 20px; }

.mt-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.mt-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: linear-gradient(92deg, #FB8221, #FA962B); color: #FFFFFF; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.mt-title { margin: 14px 0 8px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.mt-title b { background: linear-gradient(90deg, #F99D2E, #FE6111); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-sub { margin: 0; font-size: 15.5px; line-height: 1.5; color: #5E5149; }
.mt-pending .mt-title, .mt-pending .mt-sub, .mt-pending .mt-note { visibility: hidden; }   /* no flash of the wrong offer */

.mt-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mt-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mt-col-head { display: flex; align-items: center; gap: 10px; }
.mt-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: #F1EEEC; color: #5E5149; font-size: 12.5px; font-weight: 700; }
.mt-chip-pro { background: linear-gradient(92deg, #FB8221, #FA962B); color: #FFFFFF; }
.mt-col-cap { font-size: 13.5px; color: #7B6F68; font-weight: 500; }

.mt-card { position: relative; display: flex; justify-content: center; align-items: center; min-height: 190px; padding: 18px 12px; overflow: hidden;
  background: #FFFFFF; border: 1px solid #EAE6E4; border-radius: 16px; -webkit-user-select: none; user-select: none; }
.mt-col-free .mt-card { background: #FBFAF9; }
.mt-card-pro { border: 2px solid #FB8221; box-shadow: 0 0 0 4px rgba(251, 130, 33, .09), 0 16px 34px -18px rgba(251, 130, 33, .55); }
/* the previews are pictures, not links (the cards are also inert) */
.mt-slot { display: inline-block; flex: 0 0 auto; width: max-content; max-width: none; pointer-events: none; -webkit-touch-callout: none; }
.mt-card .mt-slot:empty::before { content: 'Loading preview…'; color: #A69384; font-size: 13px; }

.mt-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; line-height: 1.35; }
.mt-list li { position: relative; padding-left: 24px; }
.mt-list-free li { color: #7B6F68; }
.mt-list-free li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 10px; height: 2px; border-radius: 2px; background: #C9C1BB; }
.mt-list-pro li { color: #161110; font-weight: 500; }
.mt-list-pro li::before { content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 5px;
  background: #FFF3E7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4761B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

.mt-foot { flex: 0 0 auto; padding: 16px 32px 18px; border-top: 1px solid #F0ECE9; background: #FFFFFF; text-align: center;
  box-shadow: 0 -12px 18px -16px rgba(30, 18, 9, .16); }
.mt-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 320px; height: 54px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(92deg, #FB8221, #FA962B); color: #FFFFFF; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(254, 97, 17, .45), 0 12px 26px -10px rgba(251, 130, 33, .7); transition: transform .15s ease, filter .15s ease; }
.mt-cta:hover { filter: brightness(1.04); transform: translateY(-1px); }
.mt-cta:focus-visible { outline: 3px solid rgba(251, 130, 33, .45); outline-offset: 3px; }
.mt-note { margin: 10px 0 0; font-size: 13px; color: #5E5149; }
.mt-links { margin: 8px 0 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: #A69384; }
.mt-link { padding: 4px 2px; border: 0; background: none; cursor: pointer; color: #7B6F68; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mt-link:hover { color: #161110; }

/* the locked editor: the upsells that make no sense while previewing Pro are hidden, and the Pro
 * preview itself can't be selected (js/mustpay.js also blanks any copy that touches it) */
body.mt-locked .free-only { display: none !important; }
body.mt-locked #sigContainer, body.mt-locked .mp-sig, body.mt-locked #mockWrap { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* dashboard: payment just went through, waiting for the plan to arrive (KV lag) */
.mt-activating { position: fixed; inset: 0; z-index: 401; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(255, 255, 255, .96); color: #161110;   /* white (Nov 2 2026): was rgba(254,248,244) */ font: 600 17px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.mt-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #FCD9B6; border-top-color: #FB8221; animation: mtSpin .8s linear infinite; }
@keyframes mtSpin { to { transform: rotate(360deg); } }

/* phones: one column, full screen, everything that matters on the first screen — both signatures (Free
 * first, then theirs) right above the pinned button. js/mustpay.js fitPair shrinks the pair on short
 * phones. The pill and the sub-line repeat what the title and the Pro card already say, so they go. */
@media (max-width: 540px), (max-width: 740px) and (min-height: 521px) {
  .mt-overlay { padding: 0; align-items: stretch; }
  .mt-modal { max-width: none; max-height: none; height: 100%; height: 100dvh; border-radius: 0; }
  .mt-body { padding: calc(16px + env(safe-area-inset-top)) 16px 14px; }
  .mt-head { margin-bottom: 12px; }
  .mt-pill, .mt-sub { display: none; }
  .mt-title { font-size: 22px; line-height: 1.22; margin: 0; }
  .mt-compare { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mt-col { gap: 7px; }
  .mt-col-head { gap: 8px; }
  .mt-chip { height: 24px; font-size: 12px; padding: 0 9px; }
  .mt-col-cap { font-size: 12.5px; }
  .mt-card { min-height: 0; padding: 10px 8px; border-radius: 14px; }
  .mt-card-pro { box-shadow: 0 0 0 3px rgba(251, 130, 33, .09), 0 12px 26px -16px rgba(251, 130, 33, .55); }
  .mt-list { font-size: 13.5px; gap: 6px; }
  /* Free: its list as one muted line */
  .mt-list-free { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; }
  .mt-list-free li { padding-left: 13px; }
  .mt-list-free li::before { left: 0; top: 7px; width: 7px; }
  .mt-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .mt-cta { width: 100%; min-width: 0; height: 52px; font-size: 16.5px; }
  .mt-note { font-size: 12px; margin-top: 7px; }
  .mt-links { margin-top: 4px; }
  .mt-link { padding: 6px 4px; }   /* thumb-sized */
}
/* short phones (iPhone SE, small Androids): the Free list goes too — its card shows the same thing */
@media (max-width: 540px) and (max-height: 760px), (max-width: 740px) and (min-height: 521px) and (max-height: 760px) {
  .mt-list-free { display: none; }
  .mt-title { font-size: 20px; }
}
@media (max-width: 360px) {
  .mt-title { font-size: 19px; }
  .mt-cta { font-size: 15.5px; height: 50px; }
}
/* landscape phones: full screen, side by side again, a one-row footer */
@media (max-height: 520px) and (min-width: 541px) {
  .mt-overlay { padding: 0; align-items: stretch; }
  .mt-modal { max-width: none; max-height: none; height: 100%; height: 100dvh; border-radius: 0; }
  .mt-body { padding: 12px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
  .mt-head { margin-bottom: 10px; }
  .mt-pill, .mt-sub { display: none; }
  .mt-title { font-size: 19px; margin: 0; }
  .mt-compare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .mt-col { gap: 6px; }
  .mt-card { min-height: 0; padding: 8px; }
  .mt-list { font-size: 12.5px; gap: 4px; }
  .mt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 16px; row-gap: 2px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
  .mt-cta { min-width: 260px; height: 44px; font-size: 15.5px; }
  .mt-note { margin: 0; font-size: 12px; }
  .mt-links { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .mt-overlay, .mt-modal { animation: none; } .mt-cta { transition: none; } }

/* paid-only test mode (owner, Oct 28 2026; js/mustpay.js paidOnly): one column, the Pro signature alone */
.mt-compare.mt-single { grid-template-columns: minmax(0, 1fr) !important; max-width: 620px; width: 100%; margin-left: auto; margin-right: auto; }
