/* On the Level marketing pages: the home page and the plans page (redesign 2026-11-12).
   Layout only. Fonts, colors and the three button kinds live in app.css and nowhere else.
   Every class here starts with mk- so it cannot collide with an app class.
   App defaults are changed only inside .mk (the body class of these two pages). */

html { scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }

/* app.css hides sideways overflow on html and on body. On body that makes the body its own scroll box,
   and a sticky bar inside it stops sticking. These pages leave the clipping to html alone. */
body.mk { background: var(--bg); overflow: visible; }

.mk-main { padding: 0; }
.mk-main, .mk-main .card, .mk-main .help { word-break: normal; }
.mk-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.mk-wrap.mk-narrow { max-width: 820px; }
.mk-sec { padding: 56px 0; }
.mk-band { background: var(--card); }
.mk-dark { background: var(--ink); color: var(--on-ink); }
.mk-dark :focus-visible { outline-color: #FFFFFF; }
.mk-dark .btn.primary:focus-visible { outline-color: #FFFFFF; }

/* ---------- Type ---------- */
.mk h1, .mk h2, .mk h3 { font-variant-numeric: lining-nums; }
.mk-h1 { font-size: clamp(34px, 10.4vw, 68px); line-height: 1.04; letter-spacing: -0.5px; text-wrap: balance; }
.mk-h2 { font-size: clamp(28px, 6.6vw, 40px); line-height: 1.1; text-wrap: balance; }
.mk-h3 { font-size: 24px; line-height: 1.15; }
.mk-kicker { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-wrap: balance; }
.mk-dark .mk-kicker { color: #D0D4D8; }
.mk-lead { font-size: 19px; line-height: 1.45; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.mk-dark .mk-lead { color: #E6E7E9; }
.mk-offer { font-size: 19px; font-weight: 700; line-height: 1.3; }
/* A sentence that never breaks in the middle: lines end where sentences end. The words in the HTML stay in order. */
.mk-s { display: inline-block; white-space: nowrap; }
.mk-note { font-size: 16px; color: var(--muted); }
.mk-dark .mk-note { color: #D0D4D8; }
.mk-fine { font-size: 16px; color: var(--muted); }
.mk-fine a, .mk-plan-more a { color: var(--text); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Every money amount stays on one line. */
.mk-nw { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

/* Buttons: full width on a phone, their own width on a wide screen. Same three kinds as the app. */
@media (min-width: 600px) {
  .mk .mk-cta .btn { width: auto; min-width: 240px; }
}
.mk-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (hover: hover) {
  .mk .btn.primary:hover { filter: brightness(0.95); }
  .mk .btn.secondary:hover { background: var(--card); }
}

/* ---------- Top bar: pinned, clear of the notch, Sign in always in reach ---------- */
.mk-top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--on-ink); padding-top: env(safe-area-inset-top, 0px); }
.mk-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.mk-logo { display: inline-flex; align-items: center; min-height: 48px; margin-left: -6px; border-radius: 8px; }
.mk-logo img { display: block; height: 44px; width: auto; }
.mk-signin { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--on-ink); font-weight: 700; font-size: 17px; text-decoration: none; border-radius: 8px; }
.mk-signin:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.mk-hero { padding: 28px 0 48px; }
.mk-hero-grid { display: grid; gap: 40px; }
.mk-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.mk-hero-copy .mk-h1 { margin-top: 14px; }
/* The plain line under the headline: what the product is, in one glance (2026-11-13). */
.mk-what { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--muted); text-wrap: balance; }
.mk-dark .mk-what { color: #D0D4D8; }
.mk-hero-copy .mk-what { margin-top: 12px; }
.mk-hero-copy .mk-lead { margin-top: 10px; }
.mk-hero-copy .mk-offer { margin-top: 22px; padding-top: 18px; border-top: 2px solid #FFFFFF; align-self: stretch; }
.mk-hero-copy .mk-cta { margin-top: 18px; align-self: stretch; }
.mk-hero-art { display: flex; justify-content: center; }

/* ---------- Real app screens, drawn small ----------
   Each screen is laid out 390px wide with the app's own classes, then scaled by --s.
   .mk-shot holds the scaled size so the page never scrolls sideways. */
.mk-mock { pointer-events: none; -webkit-user-select: none; user-select: none; }
.mk-shot { --w: 390; --h: 824; position: relative; flex: none; width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); overflow: hidden; background: #FFFFFF; }
.mk-screen { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--s)); transform-origin: 0 0; display: flex; flex-direction: column; overflow: hidden; background: #FFFFFF; color: var(--text); font-size: 17px; line-height: 1.45; text-align: left; }
.mk-screen .btn { width: 100%; }

/* The hero phone */
.mk-phone { --s: 0.65; display: inline-block; padding: 10px; border-radius: 40px; background: #0B0C0D; box-shadow: 0 0 0 2px #4A4F55; }
.mk-phone .mk-shot { border-radius: 30px; }
@media (min-width: 360px) { .mk-phone { --s: 0.75; } }
@media (min-width: 390px) { .mk-phone { --s: 0.82; } }

/* The customer's quote inside a mock: pin the sizes the real page takes at 390px. */
.mk-screen .doc { flex: 1; min-height: 0; padding: 28px 20px 20px; }
.mk-screen .doc-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.mk-screen .biz-name { font-size: 28px; }
.mk-screen .doc-total { font-size: 66px; }
.mk-screen .sec-h { padding-bottom: 6px; }

/* The quote builder inside a mock */
.mk-screen .top { position: static; padding: 8px 8px 8px 20px; }
.mk-app-title { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.mk-app-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-weight: 700; }
.mk-app-pad { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 18px; }
.mk-app-h { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.15; }
.mk-app-label { display: block; font-weight: 700; margin-bottom: 6px; }
.mk-app-box { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.mk-screen .pair strong { font-weight: 700; }

/* The Paid moment inside a mock */
.mk-screen .paid-moment { position: absolute; inset: 0; z-index: auto; }
.mk-screen .paid-moment .inner { width: 100%; padding: 44px 20px 24px; }
.mk-screen .paid-moment .tick, .mk-screen .paid-moment .tick path { animation: none; stroke-dashoffset: 0; }
.mk-paid-h { margin-top: 26px; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.1; }
.mk-screen .paid-moment .fig { font-size: 86px; }

/* ---------- How it works: three steps, each with its screen ---------- */
.mk-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 40px; }
.mk-step { display: grid; gap: 18px; }
.mk-step-txt { border-top: 2px solid var(--rule); padding-top: 14px; }
.mk-step-n { display: block; font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mk-step-txt .mk-h3 { margin-top: 2px; }
.mk-step-txt p { margin-top: 8px; color: var(--muted); }
.mk-stage { --s: 0.6; background: var(--card); border-radius: var(--radius); padding: 24px 16px 0; display: flex; justify-content: center; overflow: hidden; }
.mk-crop { flex: none; border: 6px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; overflow: hidden; background: #FFFFFF; }
.mk-crop .mk-shot { --h: 500; border-radius: 22px 22px 0 0; }
@media (min-width: 360px) { .mk-stage { --s: 0.7; } }
@media (min-width: 390px) { .mk-stage { --s: 0.78; } }

/* The job's progress line (the app's own .jobline) */
.mk-progress { margin-top: 48px; border-top: 2px solid var(--rule); padding-top: 14px; display: grid; gap: 18px; }
.mk-progress p { margin-top: 8px; color: var(--muted); }
.mk-jobline { max-width: 420px; }
.mk-also { margin-top: 32px; color: var(--muted); max-width: 44em; }

/* ---------- Sound familiar: the trouble and the fix, side by side ---------- */
.mk-pairs { margin-top: 28px; }
.mk-pair { border-top: 2px solid var(--rule); padding: 18px 0 30px; display: grid; gap: 20px; }
.mk-pair:last-child { padding-bottom: 0; }
.mk-pair p { margin-top: 8px; color: var(--muted); }
.mk-fix { border-top: 1px solid var(--hair); padding-top: 16px; }
.mk-fix-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--green-ink); }
.mk-fix-tag svg { width: 18px; height: 18px; flex: none; }
.mk-pair .mk-fix-tag { margin-top: 0; color: var(--green-ink); }
.mk-fix h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; line-height: 1.3; }

/* ---------- Plans ---------- */
.mk-slogan { margin-bottom: 20px; }
.mk-price.card.box { padding: 22px 18px 18px; }
.mk-price-lede { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 6.6vw, 34px); line-height: 1.14; font-variant-numeric: lining-nums; }
/* One sentence to a line on a phone. */
.mk-price-lede .mk-s { display: block; white-space: normal; }
.mk-price-sub { margin-top: 12px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.mk-plan { margin-top: 22px; border-top: 2px solid var(--rule); padding-top: 14px; display: grid; gap: 14px; }
.mk-plan-name { font-size: 24px; line-height: 1.15; }
.mk-plan-price { margin-top: 6px; font-size: 19px; font-weight: 600; white-space: nowrap; }
.mk-plan-price .money { font-size: 44px; line-height: 1; margin-right: 4px; }
.mk-plan-price .hl { font-family: var(--font-display); font-size: 44px; line-height: 1.1; padding: 0 10px; margin-right: 6px; letter-spacing: -0.5px; }
.mk-plan-year { margin-top: 4px; color: var(--muted); }
.mk-plan-go { display: grid; gap: 10px; }
.mk-plan-more { margin-top: 22px; border-top: 1px solid var(--hair); padding-top: 14px; color: var(--muted); }
.mk-trial { margin-top: 28px; }
.mk-trial .mk-offer { margin-bottom: 14px; }
.mk-how-pay { margin-top: 22px; }

.mk-compare { margin-top: 48px; }
.mk-compare .help { margin-top: 4px; }
.mk-table { margin-top: 14px; border-top: 2px solid var(--rule); }
.mk-table th, .mk-table td { padding: 14px 0; font-size: 17px; vertical-align: baseline; }
.mk-table thead th { font-size: 16px; font-weight: 600; color: var(--muted); padding: 10px 0; }
.mk-table tbody th { font-weight: 400; color: var(--text); padding-right: 16px; }
.mk-table td, .mk-table thead th:last-child { text-align: right; }
.mk-table .mk-us th, .mk-table .mk-us td { font-weight: 700; border-bottom: 2px solid var(--rule); }
.mk-table small { display: block; font-size: 16px; color: var(--muted); font-weight: 400; }
.mk-compare .mk-fine { margin-top: 12px; }
.mk-fees { margin-top: 32px; border-top: 2px solid var(--rule); padding-top: 14px; }
.mk-fees p { margin-top: 6px; color: var(--muted); }

/* ---------- Questions ---------- */
.mk-faq { margin-top: 24px; border-top: 2px solid var(--rule); }
.mk-faq details.fold { margin-top: 0; border-top: 0; }
.mk-faq details.fold summary { min-height: 64px; padding: 10px 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.mk-faq-a { margin: 0 0 18px; color: var(--muted); max-width: 40em; }

/* ---------- Closing and footer ---------- */
.mk-close .mk-lead { margin-top: 12px; }
.mk-close .mk-offer { margin-top: 10px; }
.mk-close .mk-cta { margin-top: 24px; }
.mk-foot { padding: 4px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.mk-main + .mk-foot { padding-top: 16px; }
.mk-main + .mk-foot nav { border-top: 0; padding-top: 0; }
.mk-foot nav { border-top: 1px solid #4A4F55; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.mk-foot a { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 600; color: #D0D4D8; text-decoration: none; }
.mk-foot a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- The plans page ---------- */
.mk-page-head { padding: 28px 0 0; }
.mk-page-head .mk-h1 { margin-top: 10px; font-size: clamp(34px, 10.4vw, 56px); }
.mk-page-head + .mk-sec { padding-top: 24px; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .mk-plan { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 24px; }
  .mk-plan-go { grid-template-columns: repeat(2, minmax(0, 190px)); }
  .mk-price.card.box { padding: 28px 28px 24px; }
  .mk-price-lede .mk-s { display: inline-block; white-space: nowrap; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .mk-step { grid-template-columns: minmax(0, 1fr) 336px; column-gap: 32px; align-items: start; }
}
@media (min-width: 760px) {
  .mk-sec { padding: 88px 0; }
  .mk-wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .mk-top-in { padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .mk-hero { padding: 56px 0 72px; }
  .mk-hero-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: center; }
  .mk-hero .mk-h1 { font-size: clamp(40px, 5.3vw, 68px); }
  .mk-hero-copy .mk-offer { align-self: flex-start; padding-right: 40px; }
  .mk-lead { font-size: 21px; }
  .mk-phone { --s: 0.8; }
  .mk-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; padding: 24px 0 40px; }
  .mk-fix { border-top: 0; padding-top: 0; }
  .mk-jobline { max-width: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 6px; }
  .mk-jobline li { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 26px 10px 0 0; }
  .mk-jobline li::before { left: 0; top: 0; }
  .mk-jobline li::after { left: 18px; right: 4px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .mk-page-head { padding-top: 56px; }
}
@media (min-width: 900px) {
  .mk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .mk-step { grid-template-rows: auto 1fr; }
  .mk-step .mk-stage { align-self: end; }
  .mk-stage { --s: 0.62; }
}
@media (min-width: 1040px) {
  .mk-stage { --s: 0.72; }
  .mk-progress { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
}
