/* ==========================================================================
   Marketing pages (landing, pricing): editorial, calm, precise. One hero with a composition of real product-UI components (demo data),
   a bento of features, the pinned "From viewing to move-out" story, the money flows, plans, FAQ and a closing band.
   Rich motion lives here and in motion.css; app pages stay subtle. docs/DESIGN_SYSTEM.md, section 5.
   ========================================================================== */

.mk-section { padding: var(--s-16) 0; }
@media (min-width: 992px) { .mk-section { padding: 6.5rem 0; } }
.mk-section--tight { padding-top: 0; }
.mk-head { max-width: 40rem; margin-bottom: var(--s-10); }
.mk-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; margin-bottom: var(--s-4); }
.mk-head p { color: var(--text-2); font-size: var(--fs-18); margin: 0; }
.mk-head--center { margin-inline: auto; text-align: center; }
.mk-note { color: var(--text-3); font-size: var(--fs-13); }

/* ---------- Hero ---------- */
.mk-hero { position: relative; padding: var(--s-12) 0 var(--s-16); overflow: hidden; }
@media (min-width: 992px) { .mk-hero { padding: 5.5rem 0 6rem; } }
.mk-hero > .container { position: relative; z-index: 1; }
.mk-hero-grid { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 992px) { .mk-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); } }
.mk-hero h1 { margin-bottom: var(--s-5); }
.mk-hero-sub { max-width: 32rem; margin-bottom: var(--s-8); }
.mk-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.mk-trust { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); color: var(--text-2); font-size: var(--fs-13); }
.mk-trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.mk-trust .ua-i { width: 1rem; height: 1rem; color: var(--text-3); }

/* The composition: a main product card and two floating glass cards (drift a little with the pointer). */
.mk-stage { position: relative; padding-bottom: var(--s-2); }
.mk-shot { position: relative; max-width: 26rem; margin-inline: auto; background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-lg); overflow: hidden; }
.mk-shot-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); }
.mk-shot-head strong { font-size: var(--fs-14); }
.mk-shot-head span { color: var(--text-3); font-size: var(--fs-13); }
.mk-shot-body { padding: var(--s-5); }
.mk-shot-amount { font-size: var(--fs-38); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; margin: 0 0 var(--s-1); font-variant-numeric: tabular-nums; }
.mk-shot-sub { color: var(--text-2); font-size: var(--fs-13); margin: 0 0 var(--s-5); }
.mk-float { display: none; }
.mk-floats { display: grid; gap: var(--s-3); max-width: 26rem; margin: var(--s-4) auto 0; }
.mk-glass { background: var(--glass-bg); border-radius: var(--r-3); box-shadow: var(--sh-md); padding: var(--s-4); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mk-glass { -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%); backdrop-filter: blur(var(--glass-blur)) saturate(140%); }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .mk-glass { background: var(--glass-solid); } }
.mk-glass-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); font-weight: 500; color: var(--text-2); margin-bottom: var(--s-2); }
.mk-glass-title .ua-i { width: 1rem; height: 1rem; color: var(--text-3); }
.mk-glass-value { font-size: var(--fs-24); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.mk-glass-note { font-size: var(--fs-13); color: var(--text-3); margin: 0; }
@media (min-width: 992px) {
  .mk-stage { min-height: 33rem; padding-top: var(--s-6); }
  .mk-shot { margin-left: auto; margin-right: var(--s-8); max-width: 27rem; }
  .mk-floats { display: none; }
  .mk-float { display: block; position: absolute; width: 15.5rem; }
  .mk-float--vault { bottom: 3.25rem; right: 0; z-index: 2; width: 13.5rem; }
  .mk-float--points { bottom: -.25rem; left: 0; z-index: 2; width: 13.5rem; }
}
@media (min-width: 1200px) { .mk-shot { margin-right: var(--s-10); } }

/* ---------- Bento ---------- */
.mk-bento { display: grid; gap: var(--s-4); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.mk-tile { grid-column: span 12; display: flex; flex-direction: column; gap: var(--s-2); min-height: 15rem; padding: var(--s-6); background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-xs); overflow: hidden; }
.mk-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin-bottom: var(--s-3); border-radius: var(--r-1); background: var(--action-soft); color: var(--action); }
.mk-tile-icon.is-money { background: var(--money-bg); color: var(--money); }
.mk-tile-icon.is-info { background: var(--info-bg); color: var(--info); }
.mk-tile h3 { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.025em; margin: 0; }
.mk-tile p { color: var(--text-2); font-size: var(--fs-15); margin: 0; max-width: 30rem; }
.mk-tile-visual { margin-top: auto; padding-top: var(--s-5); }
.mk-figure { font-size: var(--fs-48); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-figure small { font-size: var(--fs-18); font-weight: 500; color: var(--text-2); letter-spacing: -.01em; margin-left: .25rem; }
.mk-mini { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-4); align-items: center; border-radius: var(--r-2); padding: var(--s-2); background: var(--surface-2); }
.mk-mini-media { aspect-ratio: 4 / 3; border-radius: calc(var(--r-2) - 4px); overflow: hidden; }
.mk-mini strong { display: block; font-size: var(--fs-14); }
.mk-mini span { color: var(--text-2); font-size: var(--fs-13); }
@media (min-width: 768px) {
  .mk-tile { grid-column: span 6; }
  .mk-tile--wide { grid-column: span 12; }
}
@media (min-width: 992px) {
  .mk-tile { grid-column: span 4; }
  .mk-tile--7 { grid-column: span 7; }
  .mk-tile--5 { grid-column: span 5; }
}

/* ---------- Two sides ---------- */
.mk-sides { display: grid; gap: var(--s-4); }
@media (min-width: 992px) { .mk-sides { grid-template-columns: 1fr 1fr; } }
.mk-side { padding: var(--s-8); background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-xs); display: flex; flex-direction: column; }
.mk-side h3 { font-size: var(--fs-30); font-weight: 600; letter-spacing: -.035em; margin: 0 0 var(--s-2); }
.mk-side > p { color: var(--text-2); }
.mk-side .ua-checks { margin: var(--s-4) 0 var(--s-6); }
.mk-side .ua-checks li { font-size: var(--fs-15); }
.mk-side .ua-checks b { display: block; font-weight: 600; }
.mk-side .ua-checks span > span { display: block; color: var(--text-2); font-size: var(--fs-14); }
.mk-side .btn { align-self: flex-start; margin-top: auto; }

/* ---------- The pinned story: From viewing to move-out ---------- */
.mk-story { position: relative; }
.mk-story-stage { padding: var(--s-16) 0; }
.mk-story .mk-head { margin-bottom: var(--s-8); }
.mk-story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); position: relative; }
.mk-story-steps > li { display: flex; flex-direction: column; gap: var(--s-4); }
.mk-step-text { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.mk-step-text h3 button { all: unset; box-sizing: border-box; cursor: pointer; }
.mk-step-text h3 button::after { content: ""; position: absolute; inset: 0; }
.mk-step-text:has(button:focus-visible) { box-shadow: var(--focus-ring); border-radius: var(--r-2); }
.mk-step-text h3 button:focus-visible { box-shadow: none; }
.mk-step-num { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--fs-14); font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); position: relative; z-index: 1; }
.mk-step-text h3 { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.025em; margin: .3rem 0 var(--s-1); }
.mk-step-text p { color: var(--text-2); font-size: var(--fs-15); margin: 0; }
.mk-step-visual { max-width: 26rem; }
.mk-panel { background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-md); padding: var(--s-5); }
.mk-panel-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-13); font-weight: 500; color: var(--text-2); margin-bottom: var(--s-3); }
.mk-panel-value { font-size: var(--fs-38); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-bottom: var(--s-2); }
.mk-panel-row { display: flex; align-items: center; gap: var(--s-4); }
.mk-panel .mk-mini-media { margin-bottom: var(--s-4); border-radius: var(--r-2); }
.mk-slots { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.mk-slots span { padding: .35rem .7rem; border-radius: var(--r-1); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.mk-slots span.is-on { background: var(--action); color: var(--action-fg); }

/* Pinned on wide screens with motion and room to fit: a tall scroll track holding a sticky stage. Elsewhere (phones, reduced
   motion, and windows shorter than the stage, where a pinned stage would be cut off at the top and bottom) it is a plain list. */
@media (min-width: 992px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .ua-js .mk-story { height: 440vh; }
  /* `safe center`: centred when there is room, pinned to the top (under the navbar) when there isn't, never pushed off the top. */
  .ua-js .mk-story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 5.5rem 0 var(--s-8); display: flex; flex-direction: column; justify-content: flex-start; justify-content: safe center; overflow: hidden; }
  .ua-js .mk-story-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-16); row-gap: var(--s-2); align-items: start; }
  .ua-js .mk-story-steps > li { display: contents; }
  .ua-js .mk-step-text { z-index: 1; grid-column: 1; padding: var(--s-3) 0; }
  /* Steps that are not current are quieter (colour, not opacity, so the text keeps AA contrast). */
  .ua-js .mk-step-text h3 button { color: var(--text-2); }
  .ua-js .mk-step-text p { color: var(--text-3); }
  .ua-js .mk-step-text:hover h3 button, .ua-js .mk-step-text:focus-within h3 button, .ua-js .mk-step-text[aria-current="step"] h3 button { color: var(--text); }
  .ua-js .mk-step-text:hover p, .ua-js .mk-step-text:focus-within p, .ua-js .mk-step-text[aria-current="step"] p { color: var(--text-2); }
  .ua-js .mk-step-text[aria-current="step"] .mk-step-num { background: var(--action); border-color: var(--action); color: var(--action-fg); }
  .ua-js .mk-step-num { transition: background-color var(--dur-3) linear, color var(--dur-3) linear; }
  /* The track behind the numbers; the fill grows with the scroll (transform only). */
  .ua-js .mk-story-steps::before, .ua-js .mk-story-steps::after { content: ""; z-index: 0; position: absolute; left: calc(1.125rem - 1px); top: 1.5rem; bottom: 1.5rem; width: 2px; background: var(--line); }
  .ua-js .mk-story-steps::after { background: var(--action); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .ua-js .mk-step-visual { grid-column: 2; grid-row: 1 / span 5; align-self: center; width: 100%; max-width: 27rem; justify-self: center; opacity: 0; transform: translate3d(0, 1rem, 0) scale(.985); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); pointer-events: none; }
  .ua-js .mk-story:not([data-step]) .mk-step-visual[data-i="0"], .ua-js .mk-story[data-step="0"] .mk-step-visual[data-i="0"],
  .ua-js .mk-story[data-step="1"] .mk-step-visual[data-i="1"], .ua-js .mk-story[data-step="2"] .mk-step-visual[data-i="2"],
  .ua-js .mk-story[data-step="3"] .mk-step-visual[data-i="3"], .ua-js .mk-story[data-step="4"] .mk-step-visual[data-i="4"] { opacity: 1; transform: none; pointer-events: auto; }
}
/* Laptop-height windows: the whole stage (heading, five steps, card) has to fit in one screen, so tighten it. */
@media (min-width: 992px) and (min-height: 680px) and (max-height: 880px) and (prefers-reduced-motion: no-preference) {
  .ua-js .mk-story-stage { padding: 4.5rem 0 var(--s-4); }
  .ua-js .mk-story .mk-head { margin-bottom: var(--s-3); }
  .ua-js .mk-story .mk-head h2 { font-size: clamp(1.75rem, 3.6vh + 1rem, 2.25rem); margin-bottom: 0; }
  .ua-js .mk-story .mk-head p:not(.ua-kicker) { display: none; }
  .ua-js .mk-story-steps { row-gap: 0; }
  .ua-js .mk-step-text { padding: var(--s-2) 0; }
  .ua-js .mk-step-text h3 { font-size: var(--fs-18, 1.125rem); margin: .2rem 0 0; }
  .ua-js .mk-step-text p { font-size: var(--fs-14); }
  .ua-js .mk-step-visual { max-width: 24rem; }
}
@media (max-width: 991.98px), (max-height: 679.98px), (prefers-reduced-motion: reduce) {
  .mk-story-stage { padding: var(--s-12) 0; }
  .mk-story { scroll-margin-top: 4.5rem; }  /* Arriving from "How it works": the heading clears the fixed navbar. */
  .mk-step-text[aria-current] .mk-step-num { background: var(--surface); border-color: var(--line-strong); }
}

/* ---------- The money flows ---------- */
.mk-flows { display: grid; gap: var(--s-4); }
@media (min-width: 992px) { .mk-flows { grid-template-columns: 1fr 1fr; } }
.mk-flow { padding: var(--s-8); background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-xs); }
.mk-flow h3 { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.025em; margin-bottom: var(--s-6); }
.mk-flow .ua-status-timeline li { padding-bottom: var(--s-6); }
.mk-flow .ua-status-timeline li:last-child { padding-bottom: 0; }
.mk-flow-split { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.mk-facts { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
@media (min-width: 768px) { .mk-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Plans ---------- */
.mk-plans { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); align-items: stretch; }
.mk-plan { position: relative; display: flex; flex-direction: column; padding: var(--s-6); background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-xs); }
.mk-plan.is-featured { background: linear-gradient(180deg, var(--action-soft), var(--surface) 46%); box-shadow: var(--sh-lg); }
.mk-plan h3 { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.025em; margin: 0 0 var(--s-1); }
.mk-plan .mk-plan-tag { color: var(--text-2); font-size: var(--fs-14); margin-bottom: var(--s-5); min-height: 1.5rem; }
.mk-plan .ua-badge { position: absolute; top: var(--s-5); right: var(--s-5); }
.mk-price { display: flex; align-items: baseline; gap: var(--s-2); margin: 0; min-height: 3rem; }
.mk-price strong { font-size: var(--fs-48); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-price span { color: var(--text-2); font-size: var(--fs-14); }
.mk-price-note { color: var(--success); font-size: var(--fs-13); font-weight: 500; margin: var(--s-2) 0 0; min-height: 1.25rem; }
.mk-plan .ua-checks { margin: var(--s-5) 0 var(--s-6); font-size: var(--fs-14); }
.mk-plan .mk-plan-cta { margin-top: auto; display: grid; gap: var(--s-2); }
.mk-cycle { display: flex; justify-content: center; margin-bottom: var(--s-8); }
.mk-compare { margin-top: var(--s-10); }
.mk-compare th[scope="row"] { font-weight: 500; color: var(--text-2); }

/* ---------- FAQ ---------- */
.mk-faq-grid { display: grid; gap: var(--s-8); }
@media (min-width: 992px) { .mk-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-16); } }
.mk-faq details { border-bottom: 1px solid var(--line); }
.mk-faq details:first-child { border-top: 1px solid var(--line); }
.mk-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; font-size: var(--fs-16); font-weight: 500; cursor: pointer; list-style: none; border-radius: var(--r-1); }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: ""; flex: 0 0 auto; width: .6rem; height: .6rem; margin-right: .25rem; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-3) var(--ease-out); }
.mk-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.mk-faq summary::after { transition: transform var(--dur-4) var(--ease-spring); }  /* the chevron turns with the same spring as the answer (the answer itself: atmosphere.css, details[open]) */
.mk-faq p { color: var(--text-2); margin: 0 0 var(--s-5); max-width: 40rem; }

/* ---------- Closing band ---------- */
.mk-band { position: relative; overflow: hidden; text-align: center; padding: var(--s-16) var(--s-6); border-radius: var(--r-3); background: var(--p-900); color: #F2F7EF; isolation: isolate; }
.mk-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--p-500) 45%, transparent), transparent 70%); }
.mk-band h2 { color: #fff; font-size: clamp(2.25rem, 5vw, var(--fs-60)); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; margin-bottom: var(--s-4); }
.mk-band p { color: #C6DBB8; font-size: var(--fs-18); margin-bottom: var(--s-8); }
.mk-band .mk-actions { justify-content: center; }
.mk-band .btn-primary { background: #fff; border-color: #fff; color: var(--p-900); }
.mk-band .btn-primary:hover { background: var(--p-50); border-color: var(--p-50); color: var(--p-900); }
.mk-band .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.mk-band .btn-secondary:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* ---------- Pricing page ---------- */
.mk-pricing-hero { padding: var(--s-12) 0 var(--s-8); text-align: center; }
@media (min-width: 992px) { .mk-pricing-hero { padding: var(--s-20) 0 var(--s-10); } }
.mk-pricing-hero h1 { margin-bottom: var(--s-4); }
.mk-pricing-hero .ua-lead { max-width: 34rem; margin: 0 auto var(--s-8); }

/* Small details */
.mk-mini .ua-photo-ph span, .mk-panel .ua-photo-ph span { display: none; }
.mk-ring .ua-ring-label strong { font-size: var(--fs-14); }
.mk-ring .ua-ring-label span { display: none; }
.mk-per { font-size: var(--fs-16); font-weight: 500; color: var(--text-2); letter-spacing: -.01em; }

/* The "Example data" label of the hero composition: a badge below the cards on phones, above the main card's corner on desktop (never under a floating card). */
.mk-example { display: flex; width: max-content; margin: var(--s-4) auto 0; }
@media (min-width: 992px) { .mk-example { position: absolute; top: 0; left: 0; margin: 0; z-index: 3; } }

/* ---------- Phones: everything is centred (see also css/shell.css) ---------- */
@media (max-width: 767.98px) {
  .mk-head, .mk-hero .container, .mk-story .mk-head { text-align: center; margin-inline: auto; }
  .mk-hero-sub { margin-inline: auto; }
  .mk-actions, .mk-trust { justify-content: center; }
  .mk-trust { text-align: center; }
  .mk-shot, .mk-glass, .mk-floats, .mk-step-visual { text-align: left; }  /* the product pictures stay as drawn */
  .mk-tile-visual { text-align: center; }
  /* Cards and tiles */
  .mk-tile, .mk-side, .mk-plan, .mk-flow, .mk-panel { text-align: center; align-items: center; }
  .mk-tile p, .mk-plan .mk-plan-tag { margin-inline: auto; }
  .mk-side .btn, .mk-plan .mk-plan-cta { align-self: center; width: 100%; }
  .mk-side .ua-checks, .mk-plan .ua-checks { justify-items: center; }
  .mk-side .ua-checks li, .mk-plan .ua-checks li { justify-content: center; text-align: center; }
  .mk-price { justify-content: center; }
  .mk-price-note { text-align: center; }
  .mk-plan .ua-badge { position: static; align-self: center; margin-bottom: var(--s-2); }
  .mk-mini { text-align: left; }   /* the little listing card is a picture beside its text: keep it as drawn */
  .mk-panel-title, .mk-panel-row, .mk-slots { justify-content: center; }
  .mk-tile-visual { width: 100%; }
  /* The steps: number above the words, both centred, the card under them */
  .mk-step-text { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s-2); }
  .mk-story-steps { justify-items: center; }
  .mk-step-visual { margin-inline: auto; }
  /* Money flows, FAQ, closing band */
  .mk-flow h3 { text-align: center; }
  .mk-faq summary { justify-content: center; text-align: center; }
  .mk-faq p { text-align: center; margin-inline: auto; }
  .mk-faq-grid { text-align: center; }
  .mk-note, .mk-pricing-hero { text-align: center; }
}
