/* ============================================================
   Citeva — public marketing pages (landing, contact)
   ============================================================

   These pages are what an anonymous visitor sees before signing in, so they
   deliberately reuse styles.css rather than defining a second palette: the
   design tokens (--bg, --ink-*, --accent, --r-*, --shadow-*, the font stacks)
   and the light/dark switch all come from there, and admin-theme.js sets
   data-theme on <html> exactly as it does for the app itself.

   Every class here is prefixed `mk-` (marketing). styles.css is a large
   application stylesheet with its own .btn/.card/.brand/.site-footer rules —
   the prefix keeps these pages from colliding with any of them, now or after
   a future upstream merge, without resorting to specificity games. */

body.mk {
  /* styles.css pins html/body to height:100% for the app's fixed-position
     shell. These pages scroll normally, so the body grows with its content
     while the flex column below still pushes the footer to the bottom on a
     short page. */
  min-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.55;
}

.mk-shell {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== top bar ====== */
.mk-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.mk-nav .mk-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.mk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  text-decoration: none;
}
.mk-brand__mark {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--ink-1);
  transform: rotate(45deg);
}
.mk-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ====== links + buttons ====== */
.mk-link {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 4px;
  border-radius: var(--r-sm);
}
.mk-link:hover { color: var(--ink-1); }
.mk-link:focus-visible,
.mk-btn:focus-visible,
.mk-brand:focus-visible,
.mk-field input:focus-visible,
.mk-field textarea:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--ink-1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.mk-btn:hover { background: var(--bg-sunken); border-color: var(--ink-4); }
.mk-btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.mk-btn--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.mk-btn[disabled] { opacity: .6; cursor: default; }
.mk-btn--lg { padding: 11px 20px; font-size: 15px; }

/* ====== page body ====== */
.mk-main { flex: 1 0 auto; }

.mk-hero { padding: 88px 0 64px; }
.mk-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 18ch;
}
.mk-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 62ch;
}
.mk-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.mk-section {
  padding: 56px 0;
  border-top: 1px solid var(--border-subtle);
}
.mk-section h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.mk-prose p {
  margin: 0 0 16px;
  max-width: 68ch;
  color: var(--ink-2);
}
.mk-prose p:last-child { margin-bottom: 0; }

.mk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.mk-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
  padding: 22px;
}
.mk-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink-1);
}
.mk-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}

.mk-closing {
  padding: 56px 0 72px;
  border-top: 1px solid var(--border-subtle);
}
.mk-closing p { color: var(--ink-2); max-width: 60ch; margin: 0 0 24px; }

/* ====== contact form ====== */
.mk-form { max-width: 520px; margin-top: 28px; }
.mk-field { margin-bottom: 18px; }
.mk-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.mk-field input,
.mk-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  color: var(--ink-1);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.mk-field textarea { resize: vertical; min-height: 150px; }
.mk-field input::placeholder,
.mk-field textarea::placeholder { color: var(--ink-4); }

/* Spam honeypot: a real field to a bot reading the DOM, invisible and
   unreachable to a person (and to a screen reader, via aria-hidden +
   tabindex="-1" on the input itself). Never use display:none here — some
   bots skip fields that are display:none precisely because it is the
   obvious tell. */
.mk-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mk-note {
  font-size: 13px;
  color: var(--ink-3);
  margin: 14px 0 0;
  max-width: 60ch;
}
.mk-status {
  margin: 0 0 20px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  font-size: 14px;
  line-height: 1.5;
  max-width: 520px;
}
.mk-status[hidden] { display: none; }
.mk-status--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok); }
.mk-status--bad { background: var(--bad-bg); border-color: var(--bad-border); color: var(--bad); }

/* ====== footer ====== */
.mk-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 24px 0;
  font-size: 13px;
  color: var(--ink-3);
}
.mk-foot .mk-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mk-foot a { color: var(--ink-3); }
.mk-foot a:hover { color: var(--ink-1); }
.mk-foot__disclaimer {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-4);
  max-width: 70ch;
}

@media (max-width: 640px) {
  .mk-hero { padding: 56px 0 40px; }
  .mk-nav .mk-shell { padding-top: 12px; padding-bottom: 12px; }
  .mk-nav__right { gap: 8px; }
  .mk-link { display: none; } /* Contact still reachable from the footer */
}
