/* Marketing site (www). Loaded only by templates/marketing/base.html, and every
   rule is scoped under body.mk so nothing here can leak into the app. */
.mk {
  --mk-ink: #14212e;
  --mk-muted: #52606d;
  --mk-brand: #1f4e79;
  --mk-brand-strong: #173b5c;
  --mk-brand-soft: #e8eff6;
  --mk-surface: #ffffff;
  --mk-surface-alt: #f4f6f8;
  --mk-line: #e3e7eb;
  --ev-brand: var(--mk-brand);
  --ev-brand-text: #ffffff;
  background: var(--mk-surface);
  color: var(--mk-ink);
  -webkit-font-smoothing: antialiased;
}

.mk a:not(.btn) {
  color: var(--mk-brand);
}

.mk .mk-muted {
  color: var(--mk-muted);
}

.mk .mk-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  background: var(--mk-surface);
  padding: 8px 12px;
  border-radius: 6px;
}

/* --- buttons --- */
.mk .btn-primary {
  --bs-btn-bg: var(--mk-brand);
  --bs-btn-border-color: var(--mk-brand);
  --bs-btn-hover-bg: var(--mk-brand-strong);
  --bs-btn-hover-border-color: var(--mk-brand-strong);
  --bs-btn-active-bg: var(--mk-brand-strong);
  --bs-btn-active-border-color: var(--mk-brand-strong);
  --bs-btn-focus-shadow-rgb: 31, 78, 121;
}

.mk .mk-btn {
  font-weight: 600;
}

.mk .btn-light {
  color: var(--mk-brand);
  font-weight: 600;
}

/* --- header / footer --- */
.mk-header {
  background: var(--mk-surface);
  border-bottom: 1px solid var(--mk-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mk-header .navbar {
  padding-top: 12px;
  padding-bottom: 12px;
}

.mk-header .nav-link {
  color: var(--mk-ink);
  font-weight: 500;
}

.mk-header .nav-link.active,
.mk-header .nav-link:hover {
  color: var(--mk-brand);
}

.mk .mk-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--mk-ink);
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .mk-header .navbar-nav {
    padding-top: 8px;
  }
  .mk-header .navbar-nav .btn {
    margin-top: 8px;
    width: 100%;
  }
}

.mk-footer {
  background: var(--mk-surface-alt);
  border-top: 1px solid var(--mk-line);
  padding: 40px 0 32px;
  color: var(--mk-muted);
}

.mk-footer a {
  color: var(--mk-ink);
  text-decoration: none;
}

.mk-footer a:hover {
  color: var(--mk-brand);
  text-decoration: underline;
}

/* --- type --- */
.mk .mk-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-brand);
  margin-bottom: 12px;
}

.mk .mk-display {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.mk .mk-h1 {
  font-size: clamp(1.875rem, 3vw + 0.75rem, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.mk .mk-h2 {
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.mk .mk-lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--mk-muted);
}

.mk .mk-measure {
  max-width: 38rem;
}

.mk .mk-measure-lg {
  max-width: 48rem;
}

.mk .mk-center {
  text-align: center;
}

.mk .mk-center .mk-measure {
  margin-left: auto;
  margin-right: auto;
}

.mk .mk-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-decoration: none;
}

.mk .mk-link:hover {
  text-decoration: underline;
}

/* --- sections --- */
.mk-hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--mk-brand-soft) 0%, var(--mk-surface) 100%);
}

.mk-page-head {
  padding: 56px 0 32px;
}

.mk-section {
  padding: 64px 0;
}

.mk-section-alt {
  background: var(--mk-surface-alt);
}

.mk-cta {
  padding: 64px 0;
  background: var(--mk-brand);
  color: #ffffff;
}

.mk-cta .mk-lead {
  color: #dbe6f1;
}

@media (min-width: 992px) {
  .mk-hero {
    padding: 88px 0 96px;
  }
  .mk-section,
  .mk-cta {
    padding: 88px 0;
  }
}

/* --- features / steps / checks --- */
.mk-feature {
  height: 100%;
  padding: 24px;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: 12px;
}

.mk-feature p {
  color: var(--mk-muted);
  margin-bottom: 0;
}

.mk-feature-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--mk-brand-soft);
  color: var(--mk-brand);
}

.mk-steps p {
  color: var(--mk-muted);
}

.mk-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--mk-brand);
  color: #ffffff;
  font-weight: 700;
}

.mk-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mk-checks li {
  position: relative;
  padding: 0 0 12px 32px;
}

.mk-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mk-brand-soft);
  border: 2px solid var(--mk-brand);
}

.mk-checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--mk-brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- FAQ --- */
.mk-faq details {
  border-bottom: 1px solid var(--mk-line);
  padding: 16px 0;
}

.mk-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mk-faq summary::-webkit-details-marker {
  display: none;
}

.mk-faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--mk-brand);
}

.mk-faq details[open] summary::after {
  content: "\2212";
}

.mk-faq p {
  color: var(--mk-muted);
  margin: 12px 0 0;
}

/* --- long-form pages --- */
.mk-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.mk-prose h2:first-child {
  margin-top: 0;
}

.mk-prose li {
  margin-bottom: 8px;
}

/* --- forms --- */
.mk-form-card {
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 33, 46, 0.04), 0 8px 24px rgba(20, 33, 46, 0.06);
}

/* The spam-trap field: off-screen for people, still in the form for bots. */
.mk-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- phone mockup (hero) --- */
.mk-phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 40px;
  background: #14212e;
  box-shadow: 0 24px 48px rgba(20, 33, 46, 0.22);
}

.mk-phone-screen {
  position: relative;
  padding: 16px 14px 72px;
  border-radius: 30px;
  background: #f4f6f8;
  font-size: 0.8125rem;
  overflow: hidden;
}

.mk-phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -16px -14px 12px;
  padding: 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--mk-line);
  font-weight: 700;
}

.mk-phone-card {
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
}

.mk-phone-label {
  font-size: 0.75rem;
  color: var(--mk-muted);
}

.mk-phone-total {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mk-phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--mk-line);
}

.mk-phone-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--mk-brand);
  color: #ffffff;
  font-weight: 700;
}

.mk-phone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
  border-left: 3px solid #d4a72c;
}

.mk-phone-item .ms-auto {
  font-weight: 600;
}

.mk-phone-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 12px;
  background: #ffffff;
  border-top: 1px solid var(--mk-line);
  font-size: 0.625rem;
  color: var(--mk-muted);
}

.mk-phone-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mk-phone-tabs .active {
  color: var(--mk-brand);
  font-weight: 700;
}
