/* Page-level styles of the public site (moacere.ge) on top of the design system (tokens.css,
   components.css, marketing.css). Tokens only; no new colours. Author: Smarketer. */

/* ---- Shared layout helpers ------------------------------------------------------------------------ */
.mk-split { display: grid; gap: clamp(var(--s-3), 4vw, var(--s-6)); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.mk-split--form { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 1023.98px) { .mk-split, .mk-split--form { grid-template-columns: minmax(0, 1fr); } }
.mk-split > * { min-width: 0; }
.mk-crumbs { margin-bottom: var(--s-1); }
.mk-state { margin-top: var(--s-1); }
.mk-toc ul { display: flex; flex-wrap: wrap; gap: var(--s-1); list-style: none; padding: 0; }
.mk-toc a {
  display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--s-2);
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--heading); font-size: var(--fs-sm); text-decoration: none;
}
.mk-toc a:hover { border-color: var(--brand-300); color: var(--brand-ink); }
.mk-link-list { display: grid; list-style: none; padding: 0; }
.mk-link-list a { display: inline-flex; align-items: center; min-height: var(--touch); }

/* ---- Checklists (symbol + text, never colour only) ---------------------------------------------- */
.mk-checklist { display: grid; gap: var(--s-1-5); list-style: none; padding: 0; }
.mk-checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted-strong); }
.mk-checklist .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--success-ink); }
.mk-checklist--no .icon { color: var(--muted); }
.mk-yes, .mk-no, .mk-addon { display: inline-flex; gap: 6px; align-items: flex-start; font-size: var(--fs-sm); }
.mk-yes .icon, .mk-no .icon, .mk-addon .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.mk-yes { color: var(--success-ink); }
.mk-no { color: var(--muted); }
.mk-addon { color: var(--brand-tone-ink); }

/* ---- Home: security summary ------------------------------------------------------------------ */
.mk-controls { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
@media (max-width: 1023.98px) { .mk-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .mk-controls { grid-template-columns: 1fr; } }
.mk-control { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-2-5); border-radius: var(--radius-lg); background: var(--surface); }
.mk-control__title { color: var(--heading); font-size: var(--fs-body); font-weight: var(--fw-medium); }
.mk-control__text { margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); }
.mk-legal-link { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-strong); font-size: var(--fs-sm); }
.mk-legal-link .icon { flex: none; margin-top: 3px; color: var(--brand-ink); }

/* ---- Product demo --------------------------------------------------------------------------- */
.mk-demo__grid { display: grid; gap: var(--s-2); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 1099.98px) { .mk-demo__grid { grid-template-columns: 1fr 1fr; } .mk-demo__editor { grid-column: 1 / -1; } }
@media (max-width: 639.98px) { .mk-demo__grid { grid-template-columns: minmax(0, 1fr); } }
.mk-demo__grid > * { min-width: 0; }
.mk-demo { padding-top: var(--s-2); }
/* The staged „მუშავდება“ badge spins only while the demo cycle plays (brief §4: no unbounded decorative motion). */
[data-demo]:not(.is-playing) .status.is-live .icon { animation-play-state: paused; }
.mk-demo .card { margin: 0; }
.mk-demo__cap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: var(--s-2); color: var(--heading); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.mk-demo__cap .icon { color: var(--brand-ink); }
.mk-demo__workspace { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--s-1-5); }
@media (max-width: 479.98px) { .mk-demo__workspace { grid-template-columns: 1fr; } .mk-demo__tools { display: flex; flex-wrap: wrap; } }
.mk-demo__tools { display: grid; gap: 6px; align-content: start; list-style: none; padding: 0; }
.mk-demo__tool {
  display: flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken);
  color: var(--muted-strong); font-size: var(--fs-xs);
}
.mk-demo__page {
  position: relative; display: grid; gap: 8px; align-content: start; padding: var(--s-2);
  border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--divider);
  aspect-ratio: 210 / 230;
}
.mk-demo__line { display: block; height: 7px; border-radius: 4px; background: var(--canvas-strong); }
.mk-demo__line--title { width: 55%; height: 10px; margin-bottom: 4px; background: var(--brand-200); }
.mk-demo__line--short { width: 45%; }
.mk-demo__line--mid { width: 70%; }
.mk-demo__fields { display: grid; gap: 8px; margin-top: var(--s-1); max-width: 260px; }
.mk-demo__files { display: grid; gap: 6px; margin-top: var(--s-2); list-style: none; padding: 0; color: var(--muted-strong); font-size: var(--fs-sm); }
.mk-demo__files li { display: flex; gap: 8px; align-items: center; }
.mk-demo__files .icon { color: var(--success-ink); }

/* ---- Pricing ------------------------------------------------------------------------------------ */
.mk-plan-intro { color: var(--heading); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.mk-soon { color: var(--muted); font-size: var(--fs-2xs); }
.mk-notes { display: grid; gap: var(--s-1); }
.mk-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-strong); font-size: var(--fs-sm); max-width: 56em; }
.mk-note .icon { flex: none; margin-top: 3px; color: var(--brand-ink); }
.mk-tax { max-width: 56em; }
.mk-compare { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.mk-compare__table { min-width: 760px; }
.mk-compare__table thead th { position: sticky; top: 0; background: var(--surface-sunken); color: var(--heading); font-size: var(--fs-sm); }
.mk-compare__table thead th.is-featured { color: var(--brand-ink); }
.mk-compare__table tbody th[scope="row"] { padding: 14px var(--s-3); border-bottom: 1px solid var(--divider); color: var(--heading); font-weight: var(--fw-regular); text-align: start; }
.mk-compare__table .mk-compare__feature { width: 30%; }
.mk-compare__table .table__sub { display: block; color: var(--muted); font-size: var(--fs-xs); }
.mk-compare__table td.num { text-align: start; font-weight: var(--fw-medium); color: var(--ink); }
.mk-compare__group th { padding: 18px var(--s-3) 8px; background: var(--lavender); color: var(--brand-ink); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-align: start; }
.mk-addons { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; }
.mk-addon-card { display: grid; gap: 6px; align-content: start; padding: var(--s-2-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.mk-addon-card__title { color: var(--heading); font-size: var(--fs-body); font-weight: var(--fw-title); }
.mk-addon-card__price { color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-medium); }
.mk-soon-badge { display: inline-flex; gap: 6px; align-items: center; justify-self: start; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--neutral-bg); color: var(--neutral-ink); font-size: var(--fs-xs); }

/* ---- Features page ------------------------------------------------------------------------------ */
.mk-feature-list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.mk-feature-row {
  display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + var(--s-2));
}
.mk-feature-row__head { display: grid; gap: var(--s-1); align-content: start; }
.mk-feature-row__head .h3 { margin-top: var(--s-1); color: var(--heading); }
@media (max-width: 767.98px) { .mk-feature-row { grid-template-columns: 1fr; padding: var(--s-3); } }

/* ---- Flow (how it works, solutions) ------------------------------------------------------------- */
.mk-flow { display: grid; gap: 0; list-style: none; padding: 0; counter-reset: none; }
.mk-flow__item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-2); padding-bottom: var(--s-4); }
.mk-flow__item:not(:last-child)::before { content: ""; position: absolute; top: 48px; bottom: 4px; left: 23px; width: 2px; background: repeating-linear-gradient(180deg, var(--brand-300) 0 4px, transparent 4px 8px); }
.mk-flow__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--lavender); color: var(--brand-ink); font-weight: var(--fw-medium); font-size: var(--fs-md);
}
.mk-flow__title { display: flex; gap: 8px; align-items: center; color: var(--heading); font-size: var(--fs-lg); font-weight: var(--fw-title); }
.mk-flow__title .icon { color: var(--brand-ink); }
.mk-flow__body { padding-top: 10px; }
.mk-flow__body p { margin-top: 6px; color: var(--muted-strong); }
.mk-flow--compact .mk-flow__item { grid-template-columns: 40px minmax(0, 1fr); padding-bottom: var(--s-2-5); }
.mk-flow--compact .mk-flow__num { width: 40px; height: 40px; border-radius: 12px; font-size: var(--fs-body); }
.mk-flow--compact .mk-flow__item:not(:last-child)::before { top: 40px; left: 19px; }
.mk-flow--compact .mk-flow__body { padding-top: 4px; }
.mk-flow--compact .mk-flow__body p { margin-top: 4px; color: var(--ink); }

/* ---- Solutions ------------------------------------------------------------------------------------ */
.mk-problems { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
@media (max-width: 1023.98px) { .mk-problems { grid-template-columns: 1fr; } }
.mk-problems__q { color: var(--heading); font-size: var(--fs-md); font-weight: var(--fw-medium); }
.mk-problems__a { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--s-1); color: var(--muted-strong); font-size: var(--fs-sm); }
.mk-problems__a .icon { flex: none; margin-top: 3px; color: var(--success-ink); }
.usecases.mk-usecases-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .usecases.mk-usecases-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.usecases { list-style: none; padding: 0; }
.usecases > li { display: grid; }
@media (max-width: 379.98px) { .usecases, .usecases.mk-usecases-4 { grid-template-columns: 1fr; } }

/* ---- Security ------------------------------------------------------------------------------------- */
.mk-security-grid { display: grid; gap: var(--s-2-5); grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
@media (max-width: 1023.98px) { .mk-security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .mk-security-grid { grid-template-columns: 1fr; } }

/* ---- Prose (legality, legal documents) ----------------------------------------------------------- */
.mk-prose { color: var(--ink); line-height: var(--lh-body); }
.mk-prose > p, .mk-prose > ul, .mk-prose > ol { max-width: var(--measure); }
.mk-prose > * + * { margin-top: var(--s-2); }
.mk-prose h2 { margin-top: var(--s-5); color: var(--heading); font-size: var(--fs-xl); font-weight: var(--fw-medium); line-height: var(--lh-heading); }
.mk-prose h2:first-child { margin-top: 0; }
.mk-prose h3 { margin-top: var(--s-3); color: var(--heading); font-size: var(--fs-lg); font-weight: var(--fw-medium); }
.mk-prose ul, .mk-prose ol { padding-inline-start: 1.4em; }
.mk-prose li + li { margin-top: 6px; }
.mk-prose .mk-checklist { padding-inline-start: 0; }
.mk-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.mk-prose th, .mk-prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: start; vertical-align: top; }
.mk-prose th { background: var(--surface-sunken); color: var(--heading); font-weight: var(--fw-medium); }
.mk-legal { overflow-wrap: anywhere; }
.mk-levels tbody th[scope="row"] { padding: 14px var(--s-3); border-bottom: 1px solid var(--divider); color: var(--heading); font-weight: var(--fw-medium); text-align: start; min-width: 180px; }
.mk-levels td { min-width: 200px; }
.mk-draft-banner { display: flex; gap: 8px; align-items: center; justify-content: center; }
.mk-legal-nav ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); list-style: none; padding: var(--s-3) 0 0; border-top: 1px solid var(--border); }
.mk-legal-nav a { display: inline-flex; align-items: center; min-height: var(--touch); font-size: var(--fs-sm); }
.mk-legal-nav a[aria-current="page"] { color: var(--heading); font-weight: var(--fw-medium); text-decoration: none; }

/* ---- Help ----------------------------------------------------------------------------------------- */
.mk-guides { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
@media (max-width: 1023.98px) { .mk-guides { grid-template-columns: 1fr; } }
.mk-guide-steps { display: grid; gap: 8px; padding-inline-start: 1.3em; color: var(--muted-strong); }
.mk-guide-steps li::marker { color: var(--brand-ink); font-weight: var(--fw-medium); }

/* ---- Developers ---------------------------------------------------------------------------------- */
.mk-dev-cards { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
@media (max-width: 1023.98px) { .mk-dev-cards { grid-template-columns: 1fr; } }
.mk-dev-steps { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; }
@media (max-width: 1023.98px) { .mk-dev-steps { grid-template-columns: 1fr; } }
.mk-dev-step { display: grid; gap: var(--s-1-5); align-content: start; min-width: 0; padding: var(--s-3); border-radius: var(--radius-card); background: var(--surface); }
.mk-dev-step__title { display: flex; gap: var(--s-1-5); align-items: center; color: var(--heading); font-size: var(--fs-lg); font-weight: var(--fw-title); }
.mk-dev-step__title .mk-flow__num { width: 40px; height: 40px; border-radius: 12px; font-size: var(--fs-body); }
.mk-dev-step .code-block { min-width: 0; }
.mk-events dt code { font-size: var(--fs-xs); }

/* ---- Contact form -------------------------------------------------------------------------------- */
.mk-form-card { padding: clamp(var(--s-3), 3vw, var(--s-4)); }
.mk-contact-form__actions { display: grid; gap: var(--s-1-5); justify-items: start; }
@media (max-width: 479.98px) { .mk-contact-form__actions .btn { width: 100%; } }
/* Honeypot: off-screen (not display:none, which some bots detect); hidden from assistive tech. */
.mk-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mk-success { outline: none; }
.mk-success:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-md); }
.mk-contact-form .form-errors { display: flex; gap: var(--s-1-5); }
.mk-contact-form .form-errors[hidden] { display: none; }

/* Price amount never wraps ("29 ₾" stays on one line); the unit wraps below it when narrow. */
.pricing-card__price { flex-wrap: wrap; row-gap: 2px; }
.mk-amount { white-space: nowrap; }
.pricing-card { scroll-margin-top: calc(var(--header-h) + var(--s-2)); }
.mk-more { padding-inline-start: 26px; font-size: var(--fs-sm); }
.mk-more a { display: inline-flex; align-items: center; min-height: var(--touch); }

/* Demo: stacked name/meta rows and a single-column key/value list inside the narrow cards */
.mk-demo .list-row__title, .mk-demo .list-row__meta { display: block; }
.mk-demo .list-row__meta { color: var(--muted); font-size: var(--fs-xs); }
.mk-demo .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
.mk-demo .kv dt { padding: 10px 0 0; border-bottom: 0; font-size: var(--fs-xs); }
.mk-demo .kv dd { padding: 2px 0 10px; }

/* =================================================================================================
   Revision 3 home page (brief §2 items 2–10, §4 motion). Prefix mk-. Tokens only. Author: Smarketer.
   ================================================================================================= */

/* ---- Shared mini-UI atoms ------------------------------------------------------------------------ */
.mk-demo-tag {
  position: absolute; bottom: var(--s-1-5); inset-inline-start: var(--s-1-5); z-index: 5;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85); color: var(--muted-strong); font-size: var(--fs-2xs); font-weight: var(--fw-medium);
  box-shadow: var(--shadow-xs);
}
.mk-line { display: block; height: 7px; border-radius: 4px; background: var(--canvas-strong); }
.mk-line--title { width: 55%; height: 10px; margin-bottom: 4px; background: var(--brand-200); }
.mk-line--short { width: 45%; }
.mk-line--mid { width: 70%; }
.mk-ui { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.mk-ui__bar { display: flex; align-items: center; gap: var(--s-1-5); min-height: 40px; padding: 0 var(--s-2); border-bottom: 1px solid var(--divider); background: var(--surface-sunken); color: var(--muted); font-size: var(--fs-xs); }
.mk-ui__dots { display: inline-flex; gap: 5px; }
.mk-ui__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mk-ui__crumb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ui__zoom { font-variant-numeric: tabular-nums; }
.mk-ui__body { padding: var(--s-2); }
.mk-page { position: relative; display: grid; gap: 8px; align-content: start; padding: var(--s-2); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--divider); min-width: 0; }
.mk-page__fields { display: grid; gap: 8px; margin-top: var(--s-1); max-width: 260px; }
.mk-page__fields--spread { max-width: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mk-field {
  display: grid; gap: 3px; padding: 10px 12px; min-width: 0;
  border: 1.5px solid var(--r1-border); border-radius: 10px; background: var(--r1-bg); color: var(--r1-ink);
}
.mk-field.is-r2 { border-color: var(--r2-border); background: var(--r2-bg); color: var(--r2-ink); }
.mk-field.is-r3 { border-color: var(--r3-border); background: var(--r3-bg); color: var(--r3-ink); }
.mk-field--ghost { border-style: dashed; opacity: 0.75; }
.mk-field__title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.mk-field__meta { font-size: var(--fs-2xs); opacity: 0.9; }
.mk-tool {
  display: flex; gap: 6px; align-items: center; min-height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken);
  color: var(--muted-strong); font-size: var(--fs-xs); white-space: nowrap;
}
.mk-tool.is-active { border-color: var(--brand-300); background: var(--brand-100); color: var(--brand-ink); }
.mk-tool .icon { color: var(--brand-ink); }

/* ---- 2. Hero ---------------------------------------------------------------------------------------- */
/* R3.3 (2026-09-29, owner: "the hero background is messed up"): one light field. The dark ink arc is gone —
   the 3D artwork is painted on the site's lavender (#f7f3fe ≈ --lavender), so on a light field it melts in
   with a soft mask instead of showing as a pale rectangle on a dark shape. Two UI cards float over the
   artwork's empty corners: the signers card (top left) and the completion card (bottom right). */
.mk-hero { padding: var(--s-1) var(--s-2) 0; }
.mk-hero__frame {
  position: relative;
  max-width: calc(var(--max-width) + 2 * var(--s-6));
  margin-inline: auto;
  border-radius: var(--radius-card);
  border: 1px solid rgba(114, 34, 255, 0.08);
  background:
    radial-gradient(48% 62% at 76% 48%, rgba(114, 34, 255, 0.13), transparent 72%),
    radial-gradient(34% 44% at 100% 100%, rgba(236, 111, 166, 0.08), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, #fff, transparent 70%),
    linear-gradient(180deg, #fbf9ff, var(--lavender));
  overflow: hidden;
  isolation: isolate;
}
/* fine grid, fading out towards the edges and away from the text */
.mk-hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(114, 34, 255, 0.055) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(114, 34, 255, 0.055) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 80% at 70% 45%, #000 20%, transparent 78%);
}
/* two faint rings behind the artwork */
.mk-hero__frame::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: 4%; top: 50%; width: min(46vw, 640px); aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(114, 34, 255, 0.10);
  box-shadow: 0 0 0 64px rgba(255, 255, 255, 0.22), 0 0 0 65px rgba(114, 34, 255, 0.07);
}
.mk-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  gap: clamp(var(--s-3), 4vw, var(--s-6));
  min-height: clamp(520px, 44vw, 620px);
  padding-block: var(--s-6);
}
.mk-hero__content { position: relative; z-index: 2; max-width: 560px; }
.mk-hero__title {
  margin-top: var(--s-3);
  font-size: var(--fs-hero);
  line-height: var(--lh-caps-display);
  font-weight: var(--fw-heading, 700);
  color: var(--ink);
  letter-spacing: var(--ls-caps-tight);  /* Mtavruli headline (base.css) */
  text-wrap: balance;
}
.mk-hero__title em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(90deg, var(--brand), #a45bff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mk-hero__lead { margin-top: var(--s-3); max-width: 26.25em; color: var(--muted-strong); font-size: var(--fs-md); line-height: var(--lh-lead, 1.65); }
.mk-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.mk-hero__actions .btn--primary { box-shadow: 0 10px 24px -10px rgba(114, 34, 255, 0.65); }
.mk-hero__actions .btn--secondary { border-color: rgba(114, 34, 255, 0.14); background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-xs); }
.mk-hero__note { display: flex; align-items: center; gap: 8px; margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-sm); }
.mk-hero__note .icon { color: var(--success-ink); }

/* the stage: fixed aspect box (no CLS), children absolutely positioned in % */
.mk-hero__stage { position: relative; z-index: 1; aspect-ratio: 10 / 8.4; min-height: 400px; max-height: 580px; }
.mk-hero__art {
  position: absolute; z-index: 0; right: -3%; top: 0; bottom: 0; width: 103%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side ellipse at 55% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(closest-side ellipse at 55% 50%, #000 78%, transparent 100%);
}
.mk-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }

.mk-hero__signers {
  position: absolute; z-index: 2; left: 0; top: 7%; width: min(50%, 300px);
  padding: 14px 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(114, 34, 255, 0.10);
  box-shadow: 0 24px 48px -24px rgba(35, 16, 94, 0.35), 0 2px 6px rgba(35, 16, 94, 0.06);
}
.mk-hero__doc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--divider); font-size: var(--fs-xs); color: var(--muted); }
.mk-hero__doc-icon { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-100); color: var(--brand-ink); }
.mk-hero__doc-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.mk-hero__doc-page { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-hero__progress { display: block; height: 4px; margin: 10px 0 6px; border-radius: 4px; background: var(--brand-100); overflow: hidden; }
.mk-hero__progress > span { display: block; width: 34%; height: 100%; border-radius: inherit; background: var(--brand); }
.mk-hero__chips { display: grid; list-style: none; padding: 0; margin: 0; }
.mk-hero__chip { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.mk-hero__chip + .mk-hero__chip { border-top: 1px dashed var(--divider); }
.mk-hero__chip-main { flex: 1; min-width: 0; display: grid; }
.mk-hero__chip-name { color: var(--heading); font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-hero__chip-role { color: var(--muted); font-size: var(--fs-2xs); }
.mk-hero__chip .status { flex: none; }

.mk-hero__done {
  position: absolute; z-index: 3; left: 4%; bottom: 4%; width: min(54%, 320px);
  display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--success-border);
  box-shadow: 0 24px 48px -24px rgba(12, 80, 40, 0.35), 0 2px 6px rgba(35, 16, 94, 0.06);
}
.mk-hero__done-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--ink); }
.mk-hero__done-main { display: grid; gap: 2px; min-width: 0; }
.mk-hero__done-title { color: var(--success-ink); font-weight: var(--fw-semibold); }
.mk-hero__done-text { color: var(--muted-strong); font-size: var(--fs-xs); }
.mk-hero__done-hash { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-hero__stage .mk-demo-tag { inset-inline-start: auto; inset-inline-end: 0; bottom: 2%; top: auto; }

/* 1024–1279: a narrower stage — the two cards must not overlap */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .mk-hero__signers { top: 0; width: 64%; }
  .mk-hero__chip { padding: 6px 0; }
  .mk-hero__chip-role { display: none; }
  .mk-hero__done { bottom: 0; }
  .mk-hero__done-text { display: none; }
}
@media (max-width: 1023.98px) {
  .mk-hero { padding: 0; }
  .mk-hero__frame { border-radius: 0; border-inline: 0; border-top: 0; }
  .mk-hero__frame::after { right: 50%; top: auto; bottom: -8%; width: 120vw; max-width: 760px; transform: translateX(50%); }
  .mk-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: var(--s-5) var(--s-4); gap: var(--s-4); }
  .mk-hero__content { max-width: none; }
  .mk-hero__stage { aspect-ratio: 10 / 8; min-height: 0; max-height: none; max-width: 600px; margin-inline: auto; width: 100%; }
}
@media (max-width: 639.98px) {
  .mk-hero__actions .btn { flex: 1 1 100%; }
  .mk-hero__lead { font-size: var(--fs-body); }
  /* mobile: artwork on top, the two cards below it (no overlap with the art's objects) */
  .mk-hero__stage { aspect-ratio: auto; height: auto; display: grid; gap: 12px; }
  .mk-hero__art { position: relative; right: auto; width: 100%; height: auto; aspect-ratio: 16 / 11; margin-bottom: -18%; }
  .mk-hero__signers, .mk-hero__done { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; }
  .mk-hero__chip-role { display: none; }
  .mk-hero__stage .mk-demo-tag { position: static; justify-self: end; order: 9; }
}

/* Hero entrance (brief §4): opacity + translateY 16px, 550 ms, 70 ms stagger; CSS-only so the headline
   is readable from the first byte and needs no JS. */
@media (prefers-reduced-motion: no-preference) {
  .mk-in { animation: mk-rise-in 550ms var(--ease-out) both; }
  .mk-in-2 { animation-delay: 70ms; }
  .mk-in-3 { animation-delay: 140ms; }
  .mk-in-4 { animation-delay: 210ms; }
  .mk-in-5 { animation-delay: 280ms; }
  /* document layer: one slow float ≤ 6px, single cycle (4.5 s < 5 s — no pause control needed) */
  .mk-hero__stage.is-drawn .mk-hero__signers { animation: mk-float 4.5s var(--ease-in-out) 1; }
  .mk-hero__stage.is-drawn .mk-hero__done { animation: mk-float 4.5s var(--ease-in-out) 300ms 1; }
  .is-paused .mk-hero__signers, .is-paused .mk-hero__done { animation-play-state: paused; }
}
@keyframes mk-rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes mk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Signature stroke: 1000 ms once, when the stage becomes visible (motion.js adds .is-drawn). */
.mk-sig { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-drawn .mk-sig, .mk-panel.is-active .mk-sig { stroke-dashoffset: 0; transition: stroke-dashoffset 1000ms var(--ease-in-out) 250ms; }
.mk-panel .mk-sig { transition: none; }
@media (prefers-reduced-motion: reduce) { .mk-sig { stroke-dashoffset: 0 !important; transition: none !important; } }

/* Section reveals: hidden only under html.js-motion (added by motion.js), 400 ms, once. */
.js-motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---- 3. Process demo ------------------------------------------------------------------------------ */
.mk-process__layout { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: clamp(var(--s-3), 3vw, var(--s-5)); align-items: start; }
.mk-stages { display: grid; gap: 8px; }
.mk-stage {
  position: relative; display: flex; gap: var(--s-2); align-items: flex-start; width: 100%;
  padding: var(--s-2) var(--s-2-5); text-align: start;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: inherit;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  overflow: hidden;
}
.mk-stage:hover { border-color: var(--brand-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mk-stage[aria-selected="true"] { border-color: var(--brand); background: var(--lavender); box-shadow: 0 0 0 1px var(--brand); }
.mk-stage:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mk-stage__num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-100); color: var(--brand-ink); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.mk-stage[aria-selected="true"] .mk-stage__num { background: var(--brand); color: #fff; }
.mk-stage__body { display: grid; gap: 2px; min-width: 0; }
.mk-stage__label { color: var(--brand-ink); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.mk-stage__title { color: var(--heading); font-size: var(--fs-title, 1.375rem); line-height: var(--lh-title, 1.35); font-weight: var(--fw-title, 600); }
.mk-stage__text { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.mk-stage__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); }
.is-playing .mk-stage[aria-selected="true"] .mk-stage__bar { animation: mk-bar var(--demo-interval, 3200ms) linear forwards; }
@keyframes mk-bar { to { width: 100%; } }
.mk-process__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1-5); margin-top: var(--s-2); }
.mk-process__controls [data-demo-status] { flex: 1; min-width: 180px; min-height: 2.6em; line-height: 1.3; align-self: center; }
/* every panel occupies the same grid cell: the preview is as tall as the tallest stage on any viewport, so
   switching stages (manual or autoplay) never moves the sections below it (CLS 0) */
.mk-process__preview { display: grid; min-height: 400px; }
.mk-panel { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms; }
.mk-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s; }
.mk-panel:focus-visible { outline-offset: 4px; }
.mk-panel .mk-ui { height: 100%; display: flex; flex-direction: column; }
.mk-panel .mk-ui__body { flex: 1; min-height: 0; }
/* stage 1 */
.mk-upload-zone { display: grid; justify-items: center; gap: 8px; padding: var(--s-4) var(--s-2); border: 2px dashed var(--brand-300); border-radius: var(--radius-md); background: var(--lavender); text-align: center; }
.mk-upload-zone__title { color: var(--heading); font-weight: var(--fw-medium); }
.mk-upload-zone__meta { color: var(--muted); font-size: var(--fs-xs); }
.mk-files { display: grid; gap: 8px; margin-top: var(--s-2); list-style: none; padding: 0; }
.mk-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 12px; background: var(--surface); }
.mk-file__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-100); color: var(--brand-ink); }
.mk-file__main { flex: 1; min-width: 0; display: grid; }
.mk-file__name { color: var(--heading); font-size: var(--fs-sm); font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-file__meta { color: var(--muted); font-size: var(--fs-2xs); }
.mk-file__state { flex: none; }
/* stage 2 */
.mk-editor { display: grid; grid-template-columns: 124px minmax(0, 1fr) 200px; gap: var(--s-1-5); }
.mk-editor--block { grid-template-columns: 112px minmax(0, 1fr); }
.mk-editor__tools { display: grid; gap: 6px; align-content: start; list-style: none; padding: 0; }
.mk-editor__people { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--divider); border-radius: 12px; background: var(--surface-sunken); }
.mk-editor__people-title { color: var(--heading); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.mk-people { display: grid; gap: 6px; list-style: none; padding: 0; }
.mk-person { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface); border-inline-start: 3px solid var(--r1-border); }
.mk-person.is-r2 { border-inline-start-color: var(--r2-border); }
.mk-person.is-r3 { border-inline-start-color: var(--r3-border); }
.mk-person__n { color: var(--muted); font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; }
.mk-person__main { display: grid; min-width: 0; }
.mk-person__name { color: var(--heading); font-size: var(--fs-xs); font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-person__role { color: var(--muted); font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* stage 3 */
.mk-signer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.mk-signer__phone { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.mk-signer__head { display: grid; gap: 2px; }
.mk-signer__from { color: var(--muted); font-size: var(--fs-2xs); }
.mk-signer__doc { color: var(--heading); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.mk-signer__pad { display: grid; justify-items: center; gap: 4px; padding: 8px; border: 1.5px dashed var(--brand-300); border-radius: 12px; background: var(--lavender); color: var(--brand-ink); }
.mk-signer__sig { width: 100%; height: auto; max-height: 64px; }
.mk-signer__pad-hint { color: var(--muted); font-size: var(--fs-2xs); }
.mk-signer__consent { min-height: 0; padding-block: 0; font-size: var(--fs-xs); }
.mk-signer__consent .check__input { width: 18px; height: 18px; }
.mk-signer__consent .check__input.is-checked { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.mk-signer__btn { min-height: 44px; font-size: var(--fs-sm); }
.mk-signer__result { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--divider); }
.mk-signer__result-title { color: var(--heading); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.mk-signer__kv { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: var(--fs-xs); }
.mk-signer__kv dt { padding-top: 6px; font-size: var(--fs-2xs); }
.mk-signer__files { display: grid; gap: 6px; list-style: none; padding: 0; color: var(--muted-strong); font-size: var(--fs-xs); }
.mk-signer__files li { display: flex; gap: 8px; align-items: center; }
.mk-signer__files .icon { color: var(--success-ink); }
@media (max-width: 1023.98px) {
  .mk-process__layout { grid-template-columns: minmax(0, 1fr); }
  .mk-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-stage { flex-direction: column; gap: 8px; }
  .mk-stage__text { display: none; }
  .mk-process__preview { min-height: 0; }
  .mk-editor { grid-template-columns: minmax(0, 1fr) 190px; }
  .mk-editor__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
}
@media (max-width: 639.98px) {
  .mk-stages { grid-template-columns: minmax(0, 1fr); }
  .mk-stage { flex-direction: row; }
  .mk-stage__title { font-size: var(--fs-md); }
  .mk-editor, .mk-signer, .mk-editor--block { grid-template-columns: minmax(0, 1fr); }
  .mk-editor__people { display: none; }
  /* the status always has its own row: a shorter message must not jump up beside the button (CLS) */
  .mk-process__controls [data-demo-status] { flex: 1 1 100%; }
  .mk-page__fields { max-width: none; }
}

/* ---- 4. Features — 12-column asymmetric grid ---------------------------------------------------- */
.mk-grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3); }
.mk-block {
  display: grid; gap: var(--s-2); align-content: start; min-width: 0;
  padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.mk-block:hover, .mk-block:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.mk-block--editor { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--lavender), var(--surface) 55%); }
.mk-block--editor .mk-block__ui { flex: 1; display: flex; flex-direction: column; }
.mk-block--editor .mk-ui__body { flex: 1; }
.mk-block--editor .mk-page--wide { height: 100%; }
.mk-block--history, .mk-block--archive { grid-column: span 5; }
/* The two wide blocks each take a full row (text | mini-UI, mirrored): side by side at span 6 their text
   columns were ~260px, so the row stretched to the taller block and left ~150px empty under „შაბლონები“. */
.mk-block--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: var(--s-3) var(--s-6); }
.mk-block--workflow { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.mk-block__title { display: flex; align-items: center; gap: 10px; color: var(--heading); font-size: var(--fs-title, 1.375rem); line-height: var(--lh-title, 1.35); font-weight: var(--fw-title, 600); }
.mk-block__text { display: grid; gap: var(--s-1); align-content: start; }
.mk-block__text > p { color: var(--muted-strong); max-width: 37.5em; }
.mk-block__link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); justify-self: start; text-decoration: none; font-weight: var(--fw-medium); }
.mk-block__link:hover { text-decoration: underline; }
.mk-block__ui { min-width: 0; }
.mk-ui--tight .mk-ui__body { padding: var(--s-1-5); }
.mk-page--wide { min-height: 240px; }
.mk-block--history .timeline { padding: var(--s-1) 0 0; }
.mk-search { display: grid; gap: 8px; min-width: 0; }
.mk-search > * { min-width: 0; }
.mk-search__box { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--control-border); border-radius: var(--radius-input); background: var(--surface); color: var(--heading); font-size: var(--fs-sm); }
.mk-search__box .icon { color: var(--muted); }
.mk-search__q { flex: 1; }
.mk-search__chip { display: inline-flex; align-items: center; gap: 4px; max-width: 48%; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--brand-100); color: var(--brand-ink); font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-search__rows { display: grid; list-style: none; padding: 0; }
.mk-search__rows li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px; border-bottom: 1px solid var(--divider); font-size: var(--fs-sm); }
.mk-search__rows li:last-child { border-bottom: 0; }
.mk-search__name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--heading); overflow: hidden; }
.mk-search__name .icon { color: var(--brand-ink); flex: none; }
.mk-search__date { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-tpl { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.mk-tpl__src, .mk-tpl__out, .mk-tpl__form { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--divider); border-radius: 12px; background: var(--surface-sunken); font-size: var(--fs-xs); }
.mk-tpl__label { display: flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: var(--fw-medium); }
.mk-tpl__name { color: var(--heading); font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.mk-tpl__vars { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-tpl__vars code { font-size: var(--fs-2xs); }
.mk-tpl__arrow { color: var(--brand-ink); }
.mk-tpl__doc { display: block; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--divider); color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tpl__form { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.mk-tpl__qr { display: grid; grid-template-columns: repeat(3, 10px); gap: 3px; padding: 6px; border-radius: 8px; background: var(--surface); border: 1px solid var(--divider); }
.mk-tpl__qr i { width: 10px; height: 10px; background: var(--ink); border-radius: 2px; }
.mk-tpl__qr i:nth-child(2), .mk-tpl__qr i:nth-child(4), .mk-tpl__qr i:nth-child(6), .mk-tpl__qr i:nth-child(8) { background: var(--brand-200); }
.mk-tpl__form-text { color: var(--muted-strong); }
.mk-flowui { display: grid; gap: var(--s-2); }
.mk-flowui__stages { display: grid; gap: 8px; list-style: none; padding: 0; }
.mk-flowui__stage { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--divider); background: var(--surface-sunken); font-size: var(--fs-xs); color: var(--muted-strong); }
.mk-flowui__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--canvas-strong); color: var(--muted-strong); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); }
.mk-flowui__stage.is-done .mk-flowui__n { background: var(--accent); color: var(--ink); }
.mk-flowui__stage.is-current { border-color: var(--brand-300); background: var(--lavender); color: var(--brand-ink); }
.mk-flowui__stage.is-current .mk-flowui__n { background: var(--brand); color: #fff; }
.mk-flowui__who { display: flex; }
.mk-flowui__who .avatar + .avatar { margin-inline-start: -8px; border: 2px solid var(--surface); }
.mk-flowui__t { flex: 1; min-width: 0; }
.mk-flowui__chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1023.98px) {
  .mk-block--editor, .mk-block--history, .mk-block--archive, .mk-block--wide { grid-column: 1 / -1; }
  .mk-block--editor { grid-row: auto; }
}
@media (max-width: 767.98px) {
  .mk-grid12 { gap: var(--s-2); }
  .mk-block { padding: var(--s-2-5); border-radius: var(--radius-lg); }
  .mk-block--wide, .mk-block--workflow { grid-template-columns: minmax(0, 1fr); }
  .mk-block--workflow .mk-block__ui { order: 2; }
  .mk-tpl { grid-template-columns: minmax(0, 1fr); }
  .mk-tpl__arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---- 5. Use-case tabs ------------------------------------------------------------------------------ */
.mk-cases__tabs { gap: var(--s-2); }
.mk-cases__tab { min-width: var(--touch); padding-inline: 4px; font-size: var(--fs-body); }
/* Phones: the one-row strip no longer fits (4 labels ≈ 361px in 358px) — all four tabs become a 2 × 2
   segmented control, so none is clipped or hidden behind a scroll; arrows/Home/End still rove (ds tabs.js). */
@media (max-width: 599.98px) {
  .mk-cases__tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible;
    padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  }
  .mk-cases__tab { justify-content: center; min-height: var(--touch); padding: 8px 12px; border-radius: var(--radius-md); white-space: normal; text-align: center; }
  .mk-cases__tab[aria-selected="true"] { background: var(--brand-100); color: var(--brand-ink); font-weight: var(--fw-semibold); }
  .mk-cases__tab[aria-selected="true"]::after { display: none; }
}
.mk-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s-3), 4vw, var(--s-6)); align-items: start; }
.mk-case__intro { display: grid; gap: var(--s-2); align-content: start; }
.mk-case__title { color: var(--heading); font-size: var(--fs-title, 1.375rem); line-height: var(--lh-title, 1.35); font-weight: var(--fw-title, 600); }
.mk-case__summary { color: var(--muted-strong); max-width: 34.5em; }
.mk-case__steps { margin-top: var(--s-1); }
.mk-case__note { font-size: var(--fs-sm); }
.mk-case__intro .btn { justify-self: start; }
.mk-case__doc { display: grid; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-md); }
.mk-case__doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mk-case__doc-main { flex: 1; min-width: 160px; display: grid; }
.mk-case__doc-title { color: var(--heading); font-weight: var(--fw-semibold); }
.mk-case__doc-src { color: var(--muted); font-size: var(--fs-xs); }
.mk-case__fields { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.mk-case__people .list-row__title, .mk-case__people .list-row__meta { display: block; }
.mk-case__people .list-row__meta { font-size: var(--fs-xs); }
@media (max-width: 1023.98px) { .mk-case { grid-template-columns: minmax(0, 1fr); } .mk-case__example { order: -1; } }

/* ---- 6. Security proofs ---------------------------------------------------------------------------- */
.mk-proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.mk-proof { display: grid; gap: var(--s-1-5); align-content: start; min-width: 0; padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.mk-proof:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mk-proof__ui { display: grid; gap: 8px; min-height: 150px; align-content: start; padding: 12px; border-radius: var(--radius-md); background: var(--lavender); font-size: var(--fs-xs); }
.mk-proof__title { display: flex; align-items: center; gap: 10px; margin-top: var(--s-1); color: var(--heading); font-size: var(--fs-title, 1.375rem); line-height: var(--lh-title, 1.35); font-weight: var(--fw-title, 600); }
.mk-proof__text { color: var(--muted-strong); font-size: var(--fs-app); }
.mk-proof__proof { display: flex; gap: 8px; align-items: flex-start; color: var(--success-ink); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.mk-proof__proof .icon { flex: none; margin-top: 3px; }
.mk-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-roles .chip.is-on { border-color: var(--brand-300); background: var(--brand-100); color: var(--brand-ink); }
.mk-roles__row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.mk-roles__k { display: flex; align-items: center; gap: 6px; color: var(--muted-strong); }
.mk-roles__v { color: var(--heading); font-weight: var(--fw-medium); white-space: nowrap; }
.mk-chain { display: grid; gap: 4px; list-style: none; padding: 0; }
.mk-chain__item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--surface); }
.mk-chain__item + .mk-chain__item::before { content: ""; position: absolute; left: 30px; top: -6px; width: 2px; height: 6px; background: var(--brand-300); }
.mk-chain__hash { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--brand-ink); }
.mk-chain__ev { color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-chain__t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--fs-2xs); }
.mk-chain__item--cp { background: var(--brand-100); }
.mk-integrity { display: grid; gap: 8px; }
.mk-integrity__row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.mk-integrity__k { color: var(--muted-strong); }
.mk-integrity__hash { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--heading); overflow-wrap: anywhere; text-align: end; }
.mk-integrity__v { color: var(--heading); font-weight: var(--fw-medium); text-align: end; }
.mk-integrity__verdict { display: flex; align-items: center; gap: 10px; color: var(--success-ink); font-weight: var(--fw-medium); }
@media (max-width: 1023.98px) { .mk-proofs { grid-template-columns: minmax(0, 1fr); } .mk-proof__ui { min-height: 0; } }

/* ---- 7. API section (dark navy) -------------------------------------------------------------------- */
.section--dark { background: var(--surface-dark); color: #e6e4f3; }
.mk-api .section-title { color: #fff; }
.mk-api__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-3), 4vw, var(--s-6)); align-items: center; }
.mk-api__grid > * { min-width: 0; }
.mk-api__text { display: grid; gap: var(--s-2); align-content: start; }
.eyebrow--on-dark { background: rgba(255, 255, 255, 0.1); color: #d7cdfd; justify-self: start; }
.mk-api__lead { color: #cfcde3; max-width: 32.5em; }
.mk-api__diagram { width: 100%; max-width: 520px; height: auto; margin-block: var(--s-1); color: #cfcde3; font-size: 14px; font-family: var(--font); }
.mk-api__node rect { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; }
.mk-api__node text { fill: #fff; font-weight: 600; }
.mk-api__node .mk-api__sub { fill: #b9b6d3; font-size: var(--fs-status); font-weight: 400; }
.mk-api__node--brand rect { fill: rgba(114, 34, 255, 0.35); stroke: #9d66ff; }
.mk-api__edge { fill: none; stroke: currentColor; stroke-width: 1.5; }
.mk-api__edge--back { stroke-dasharray: 4 4; stroke: #9d66ff; }
.mk-api__lbl { fill: #b9b6d3; font-size: var(--fs-status); font-family: var(--font-mono); }
.mk-api__actions { margin-top: var(--s-1); }
.mk-api__note { color: #b9b6d3; font-size: var(--fs-sm); }
.mk-api__note a { color: #d7cdfd; }
.mk-api__note code, .mk-api__caption code { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #ebe9f7; }
.mk-code { border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-lg); }
.mk-code pre { font-size: 13px; }
.mk-code__src { display: block; min-width: 0; }
.code-block .tok-kw { color: #ffd479; }
.code-block .tok-var { color: #7ad7ff; }
.mk-api__caption { margin-top: var(--s-1-5); color: #b9b6d3; font-size: var(--fs-xs); }
.mk-api__caption a { color: #d7cdfd; }
@media (max-width: 1023.98px) { .mk-api__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- 8. Pricing summary: expandable comparison ---------------------------------------------------- */
.mk-compare-toggle { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.mk-compare-toggle__summary { display: flex; align-items: center; min-height: 56px; padding: 0 var(--s-2-5); color: var(--brand-ink); font-weight: var(--fw-medium); list-style: none; cursor: pointer; border-radius: var(--radius-lg); }
.mk-compare-toggle__summary::-webkit-details-marker { display: none; }
.mk-compare-toggle__summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.mk-compare-toggle__summary > span { display: inline-flex; align-items: center; gap: 8px; }
/* Same specificity as `.mk-compare-toggle__summary > span` above, so the closed/open label really hides. */
.mk-compare-toggle__summary > .mk-compare-toggle__close,
.mk-compare-toggle[open] .mk-compare-toggle__summary > .mk-compare-toggle__open { display: none; }
.mk-compare-toggle[open] .mk-compare-toggle__summary > .mk-compare-toggle__close { display: inline-flex; }
.mk-compare-toggle__body { padding: 0 var(--s-2-5) var(--s-2-5); }
.mk-compare-toggle .mk-compare { border: 0; }

/* ---- 9. FAQ + short form ---------------------------------------------------------------------------- */
.mk-split--faq { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
@media (max-width: 1023.98px) { .mk-split--faq { grid-template-columns: minmax(0, 1fr); } }
.mk-form-card { padding: clamp(var(--s-3), 3vw, var(--s-4)); border-radius: var(--radius-card); background: var(--lavender); }
.mk-form-card__title { color: var(--heading); font-size: var(--fs-title, 1.375rem); line-height: var(--lh-title, 1.35); font-weight: var(--fw-title, 600); }
.mk-contact-form__extra[hidden] { display: none; }
.mk-faq-contact .faq__q { font-size: var(--fs-body); min-height: 56px; }

/* narrow phones: status pills in demo rows shrink before the row does */
@media (max-width: 479.98px) {
  .mk-search__rows .status { padding-inline: 6px 8px; font-size: var(--fs-2xs); }
  .mk-block--history .timeline__meta, .mk-search__date { display: none; }
}

/* =================================================================================================
   R3.2 — light home page + inner-page heroes + owner pricing cards (2026-09-26)
   ================================================================================================= */
/* Hero: the two CTAs stay on one row next to the Mtavruli headline (LE Studio letters are wide). */
.mk-hero__actions .btn { font-size: var(--fs-app); }
/* no ch-based cap: "ch" is measured on the digit 0 of whichever face is active, so it changed between the
   metric-matched fallback and Inter and re-wrapped the headline during the swap (CLS) */
.mk-hero__content { max-width: 580px; }

/* Shared head of the home teasers: title left, „more“ link right (≥ 44px target). */
.mk-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-3); }
.mk-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  color: var(--brand-ink);
  font-family: var(--font-nav);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.mk-more-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.mk-more-link .icon { transition: transform var(--dur) var(--ease-out); }
.mk-more-link:hover .icon { transform: translateX(3px); }

/* Home sections are compact: one idea each, generous but not endless whitespace. */
.mk-strip, .mk-why, .mk-price-teaser { padding-block: clamp(var(--s-6), 6vw, var(--s-10)); }
.mk-strip { padding-bottom: clamp(var(--s-5), 5vw, var(--s-8)); }
/* the generic „.section + .section“ collapse does not apply between two different home bands */
.section + .section.mk-price-teaser { padding-top: clamp(var(--s-6), 6vw, var(--s-10)); }

/* 3-step strip */
.mk-strip__list { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: none; }
.mk-strip__link {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 88px;
  padding: var(--s-2-5) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.mk-strip__link:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-3px); color: inherit; }
.mk-strip__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.mk-strip__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mk-strip__label { color: var(--brand-ink); font-size: var(--fs-xs); }
.mk-strip__title { color: var(--heading); font-size: var(--fs-md); font-weight: var(--fw-title); line-height: var(--lh-title); }
.mk-strip__arrow { color: var(--brand-ink); flex: none; }
@media (max-width: 899.98px) { .mk-strip__list { grid-template-columns: minmax(0, 1fr); gap: var(--s-1-5); } .mk-strip__link { min-height: 72px; } }

/* „რატომ მოაწერე“ — three cards */
.mk-why__grid { display: grid; gap: var(--s-2-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-why__card {
  display: flex;
  flex-direction: column;
  gap: var(--s-1-5);
  padding: var(--s-4) var(--s-3) var(--s-3);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.mk-why__title { color: var(--heading); font-size: var(--fs-h3); line-height: var(--lh-title); font-weight: var(--fw-title); margin-top: var(--s-1); }
.mk-why__text { color: var(--muted-strong); font-size: var(--fs-body); flex: 1; }
.mk-why__link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: var(--touch); font-family: var(--font-nav); font-size: var(--fs-sm); text-decoration: none; }
.mk-why__link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
@media (max-width: 899.98px) { .mk-why__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } .mk-why__card { padding: var(--s-3); } }

/* Pricing teaser — one row of four compact plan tiles */
.mk-price-teaser__grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-price-teaser__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 150px;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.mk-price-teaser__link:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-3px); color: inherit; }
.mk-price-teaser__plan.is-featured .mk-price-teaser__link { border: 1.5px solid var(--brand); }
.mk-price-teaser__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-1); }
.mk-price-teaser__name { color: var(--heading); font-size: var(--fs-sm); }
.mk-price-teaser__badge { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--brand); color: #fff; font-size: var(--fs-2xs); -webkit-font-smoothing: antialiased; }
.mk-price-teaser__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: var(--s-1); color: var(--heading); font-size: var(--fs-2xl); line-height: 1.15; font-weight: var(--fw-bold); }
.mk-price-teaser__plan.is-featured .mk-price-teaser__price { color: var(--brand-ink); }
.mk-price-teaser__unit { color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.mk-price-teaser__note { color: var(--muted-strong); font-size: var(--fs-xs); }
@media (max-width: 1099.98px) { .mk-price-teaser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519.98px) { .mk-price-teaser__grid { grid-template-columns: minmax(0, 1fr); } .mk-price-teaser__link { min-height: 0; } }

/* Inner-page hero: Mtavruli title + optional CTA row */
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-1-5); margin-top: var(--s-4); }
.page-hero__actions .btn { font-size: var(--fs-app); }
@media (max-width: 519.98px) { .page-hero__actions .btn { flex: 1 1 100%; } }

/* Owner pricing cards: annual mode shows the full yearly charge per seat and the exact saving */
.pricing-card__prices { display: grid; gap: 6px; }
.pricing-card__note--year { color: var(--heading); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.pricing-card__saving { display: flex; gap: 6px; align-items: flex-start; color: var(--brand-ink); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.pricing-card__saving .icon { flex: none; margin-top: 1px; }
.mk-plan-intro { margin-top: 2px; }
/* BPG LE Studio letters are ~40 % wider than the old face: a long label may wrap inside its button instead of
   widening the column (e.g. „ადამიანური რესურსები — დეტალურად“ in the use-case panel at 390px). */
.layout-marketing main .btn { max-width: 100%; white-space: normal; padding-block: 8px; }
