/* Free mock-up modal. Opens from the flier QR (/?free=<src>). Palette and fonts come from home.css. */
html.fm-lock, body.fm-lock { overflow: hidden; }
.fm { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.fm[hidden] { display: none; }
.fm-backdrop { position: absolute; inset: 0; background: rgba(18, 50, 38, .66); opacity: 0; transition: opacity .28s var(--ease); }
.fm-card {
  position: relative; width: 100%; max-height: calc(100dvh - 12px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  border-radius: 22px 22px 0 0; border: 1px solid rgba(18, 50, 38, .12);
  padding: 24px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, .55);
  transform: translateY(32px); opacity: 0; transition: transform .34s var(--ease), opacity .24s var(--ease);
}
.fm.is-open .fm-backdrop { opacity: 1; }
.fm.is-open .fm-card { transform: none; opacity: 1; }
.fm-card:focus { outline: none; }
.fm-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--green-deep); cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s var(--ease);
}
.fm-x:hover { background: rgba(18, 50, 38, .08); }
.fm-x svg { width: 18px; height: 18px; display: block; }
.fm-kicker { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); padding-right: 48px; }
.fm-title { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 1.875rem; line-height: 1.08; letter-spacing: -.01em; color: var(--green-deep); text-wrap: balance; }
.fm-sub { margin-top: 10px; font-size: .96875rem; line-height: 1.5; color: var(--muted); }
.fm-form { margin-top: 16px; display: grid; gap: 12px; }
.fm-field { display: grid; gap: 5px; font-size: .9375rem; font-weight: 500; }
.fm-field .opt { font-weight: 400; color: var(--muted); }
.fm-field input { width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 48px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.fm-field input::placeholder { color: #9a927f; }
.fm-field input:focus { border-color: var(--green); outline: 3px solid rgba(30, 77, 59, .16); outline-offset: 1px; }
.fm-form .btn { width: 100%; min-height: 54px; margin-top: 2px; }
.fm-form .btn[disabled] { opacity: .7; cursor: progress; }
.fm-msg { font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.fm-msg:empty { display: none; }
.fm-msg.is-bad { color: #a4442e; font-weight: 600; }
.fm-done { margin-top: 16px; display: grid; gap: 14px; }
.fm-done[hidden], .fm-form[hidden], .fm-sub[hidden], .fm-fine[hidden] { display: none; }
.fm-done p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--green-deep); overflow-wrap: anywhere; }
.fm-done .btn { width: 100%; min-height: 52px; }
.fm-fine { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.btn-ghost-dark { background: transparent; color: var(--green-deep); border-color: rgba(18, 50, 38, .35); }
.btn-ghost-dark:hover { border-color: var(--green-deep); background: rgba(18, 50, 38, .06); }
@media (min-width: 621px) {
  .fm { align-items: center; padding: 24px; }
  .fm-card { width: min(520px, 100%); max-height: calc(100dvh - 48px); border-radius: 24px; padding: 34px 36px 30px; transform: translateY(14px) scale(.985); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .6); }
  .fm-title { font-size: 2.375rem; }
  .fm-sub { font-size: 1.0625rem; }
  .fm-x { top: 14px; right: 14px; }
  .fm-form { margin-top: 20px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-backdrop, .fm-card { transition: none; transform: none; }
}
