/* =====================================================================================================
   Private-access page (public/locked/<slug>.html) — page-scoped under body.lock; v2 header/footer and the
   tokens come from home.css (--hm-*). The form markup is what the gate fills (<!--ERROR--> -> p.err#guest-err).
   ===================================================================================================== */
body.lock { --lk-pale: var(--hm-rose); --lk-line: #CFCBC5; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.lock main { flex: 1; display: grid; }
.lk { display: grid; place-items: center; padding: clamp(48px, 10vh, 120px) var(--hm-gutter); }
.lk__card { width: 100%; max-width: 440px; }
.lk__icon { display: block; width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 50%; background: var(--lk-pale);
  fill: none; stroke: var(--hm-red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lk__icon circle { fill: var(--hm-red); stroke: none; }
.lk__label { margin-top: 24px !important; font-size: 13px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--hm-red); }
.lk__title { margin-top: 12px !important; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.lk__desc { margin-top: 16px !important; font-size: 17px; line-height: 1.6; color: var(--hm-ink-2); }
.lk__form { margin-top: 32px; }
.lk__field-label { display: block; margin-bottom: 8px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.lk__field { position: relative; }
.lk__field input { box-sizing: border-box; width: 100%; height: 52px; padding: 0 76px 0 16px; border: 1.5px solid var(--lk-line); border-radius: 8px;
  background: #fff; color: var(--hm-ink); font: 400 17px/1 var(--hm-font); transition: border-color .15s ease, box-shadow .15s ease; }
.lk__field input::placeholder { color: #767676; }        /* 4.5:1 on white */
.lk__field input:hover { border-color: #9A958F; }
.lk__field input:focus { outline: none; border-color: var(--hm-ink); box-shadow: 0 0 0 3px rgba(200, 36, 25, .28); }
.lk__field input[aria-invalid="true"] { border-color: var(--hm-red); }
.lk__toggle { position: absolute; top: 4px; right: 4px; height: 44px; min-width: 60px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent;
  color: var(--hm-ink); font: 600 14px/1 var(--hm-font); cursor: pointer; }
.lk__toggle:hover { background: var(--hm-warm); }
.lk__toggle[hidden] { display: none; }
.lk__field:has(.lk__toggle[hidden]) input { padding-right: 16px; }
.lk .err { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0 !important; font-size: 15px; line-height: 1.45; color: var(--hm-red); }
.lk .err::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--hm-red); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; }
.lk__status:empty { display: none; }
.lk__status { margin-top: 10px !important; font-size: 15px; color: var(--hm-ink-2); }
.lk__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 20px; border: 0; border-radius: 8px;
  background: var(--hm-red); color: #fff; font: 600 17px/1 var(--hm-font); cursor: pointer; transition: background-color .15s ease; }
.lk__submit:hover { background: #A81E14; }
.lk__submit[aria-disabled="true"] { cursor: progress; background: #A81E14; }
.lk__submit:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 3px; }
.lk__contact { margin-top: 24px !important; font-size: 15px; color: var(--hm-ink-2); }
.lk__contact a { color: var(--hm-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hm-red); text-underline-offset: 4px; }
.lk__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--hm-ink); text-decoration: none; }
.lk__back:hover { color: var(--hm-red); }
/* entrance: short fade and lift (none with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .lk__card { animation: lk-in .5s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes lk-in { from { opacity: 0; transform: translateY(12px); } }
}
