/* =====================================================================
   Fable5 marketing styles — shared by FSB + FOP public pages.
   Token-driven (see /css/tokens.css + per-site brand.css). Loads AFTER the
   Landkit theme bundle and overrides its compiled colors with brand tokens.
   ===================================================================== */

body {
  font-family: var(--brand-font);
  color: var(--ink-2);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4 {
  color: var(--ink-1);
  letter-spacing: var(--tracking-tight);
}

/* ---- re-point Landkit's compiled palette at brand tokens ---- */
.text-primary { color: var(--brand-600) !important; }
.bg-primary { background-color: var(--brand-600) !important; }
a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }

.btn-primary {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
/* legacy green CTAs -> brand */
.btn-success {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.btn-success:hover, .btn-success:focus {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
}
.btn-primary-soft {
  background-color: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.btn-primary-soft:hover { background-color: var(--brand-100); color: var(--brand-800); }

/* ---- nav: sticky, hairline, blur ---- */
.mk-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Below lg, the mobile nav drawer is position:fixed. backdrop-filter here would
   make .mk-nav its containing block and clamp the drawer to the ~88px bar, so
   drop the blur on mobile and let the drawer size to the viewport. */
@media (max-width: 991.98px) {
  .mk-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* .mk-nav isn't a Bootstrap navbar-light/dark variant, so Landkit never sets the
   hamburger icon background — give the toggler a visible dark icon + border. */
.mk-nav .navbar-toggler {
  border-color: var(--line);
  padding: 6px 9px;
}
.mk-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--brand-100); }
.mk-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(30,34,44,0.85)' stroke-width='2.2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
.mk-nav .nav-link { color: var(--ink-2); font-weight: 500; font-size: var(--text-sm); }
.mk-nav .nav-link:hover { color: var(--brand-600); }
.mk-nav .navbar-brand-img { height: 40px; }

/* ---- Solutions mega-menu ----
   A wide, 3-column dropdown panel. Landkit's theme bundle styles the base
   .dropdown-menu (border/shadow/radius); we override width + lay the columns
   out with grid. Collapses to a single stacked column inside the mobile
   navbar. */
.mk-mega.dropdown-menu {
  width: min(720px, 92vw);
  max-width: 92vw;
  padding: var(--space-6);
  display: none;                 /* Bootstrap toggles .show */
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: var(--space-6);
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  z-index: 1050;                 /* above the homepage signup card */
}
.mk-mega.dropdown-menu.show { display: grid; }
.mk-mega-col { display: flex; flex-direction: column; }
.mk-mega-col--featured {
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: calc(-1 * var(--space-2));
}
.mk-mega-head {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-3);
}
.mk-mega-item {
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  margin: 0 -8px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mk-mega-item:hover { background: var(--brand-50); color: var(--brand-700); }

/* featured (icon + description) items */
.mk-mega-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin: 0 calc(-1 * var(--space-2)) 2px;
  transition: background var(--dur-fast) var(--ease-out);
}
.mk-mega-feature:hover { background: var(--surface-0); box-shadow: var(--shadow-1); }
.mk-mega-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 16px;
}
.mk-mega-feature-body { display: flex; flex-direction: column; }
.mk-mega-feature-title { color: var(--ink-1); font-size: var(--text-sm); font-weight: 600; }
.mk-mega-feature-desc { color: var(--ink-3); font-size: var(--text-xs); margin-top: 1px; }

/* Inside the collapsed mobile navbar: stack to one column, drop the panel
   chrome so it reads as an inline list. */
@media (max-width: 991.98px) {
  .mk-mega.dropdown-menu {
    width: 100%;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border: 0;
    box-shadow: none;
  }
  .mk-mega-col--featured { margin: 0; background: transparent; padding: 0; }
}

/* ---- hero ---- */
.mk-hero { padding: var(--space-12) 0 var(--space-16); background: var(--surface-0); }
.mk-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1.06;
  color: var(--ink-1);
}
.mk-hero h1 .mk-accent { color: var(--brand-600); }
/* Centered heroes use col-lg-8, which is too narrow for medium-length
   titles (they wrap unnecessarily). Widen to col-lg-10 at lg+ sitewide.
   Subtitles stay capped by .mk-hero .mk-sub; CTA/FAQ col-lg-8 blocks are
   outside .mk-hero and unaffected. */
@media (min-width: 992px) {
  .mk-hero .col-lg-8 { flex: 0 0 auto; width: 83.3333%; }
}
.mk-hero .mk-sub {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 46ch;
}
.mk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
}
.mk-pill--accent {
  background: color-mix(in srgb, var(--brand-accent) 10%, white);
  color: var(--brand-accent);
  border-color: color-mix(in srgb, var(--brand-accent) 30%, white);
}

/* ---- signup card ---- */
.mk-signup-card {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: var(--space-6);
}
/* The register partial wraps each field in Bootstrap's .form-floating, but we
   don't want floating labels here — the placeholders already label the fields.
   Hide the floating label and render the inputs as plain, vertically-centered
   single-line boxes (overriding .form-floating's fixed 3.5rem height). */
.mk-signup-prompt {
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.4;
  margin-bottom: var(--space-5);
}
.mk-signup-card .form-floating > label { display: none; }
.mk-signup-card .form-control {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  height: auto;
  min-height: 0;
  padding: 12px 14px;
  line-height: 1.4;
}
.mk-signup-card .form-floating { margin-bottom: var(--space-3); }
/* Bootstrap hides the placeholder inside .form-floating (the label stands in);
   since we hid the label, bring the placeholder back. */
.mk-signup-card .form-control::placeholder { color: var(--ink-3); opacity: 1; }
.mk-signup-card .form-control:focus {
  background: var(--surface-0);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.mk-sso-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: var(--text-xs);
  margin: var(--space-4) 0;
}
.mk-sso-divider::before, .mk-sso-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mk-btn-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--ink-1);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 9px 14px;
  margin-bottom: var(--space-2);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.mk-btn-sso:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--ink-1); }
.mk-btn-sso img { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---- sections ---- */
.mk-section { padding: var(--space-16) 0; }
.mk-section--alt { background: var(--surface-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.mk-section h2 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: var(--tracking-tight); }

/* ---- stats ---- */
.mk-stat h3 { font-size: var(--text-3xl); font-weight: 700; color: var(--brand-600); letter-spacing: var(--tracking-display); margin-bottom: 2px; }
.mk-stat p { color: var(--ink-3); font-size: var(--text-sm); }

/* ---- logo strip ---- */
.mk-logos img { max-height: 34px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity var(--dur-fast) var(--ease-out); }
.mk-logos img:hover { opacity: .9; }

/* ---- feature cards ---- */
.mk-feature {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.mk-feature:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.mk-feature .mk-feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: var(--space-4);
  font-size: 20px;
}
.mk-feature h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.mk-feature p { color: var(--ink-2); font-size: var(--text-sm); margin: 0; }

/* ---- product shot ---- */
.mk-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  background: var(--surface-0);
}
.mk-shot img { display: block; width: 100%; height: auto; }

/* ---- CTA band ---- */
.mk-cta { background: var(--ink-1); padding: var(--space-20) 0; }
.mk-cta h2 { color: #fff; font-size: var(--text-2xl); font-weight: 700; letter-spacing: var(--tracking-tight); }
.mk-cta p { color: rgba(255, 255, 255, .72); }
.mk-cta .btn-primary { box-shadow: none; }

/* ---- footer ---- */
.mk-footer { background: var(--surface-1); border-top: 1px solid var(--line); padding: var(--space-12) 0 var(--space-8); }
.mk-footer h6 { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); }
.mk-footer a { color: var(--ink-2); font-size: var(--text-sm); }
.mk-footer a:hover { color: var(--brand-600); }
.mk-footer .mk-copyright { color: var(--ink-3); font-size: var(--text-xs); }

/* brand block */
.mk-footer-brand { padding-right: var(--space-8); }
.mk-footer-logo { height: 30px; width: auto; }
.mk-footer-tagline {
  color: var(--ink-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 34ch;
  margin: var(--space-4) 0 var(--space-5);
}
@media (max-width: 991.98px) {
  .mk-footer-brand { padding-right: 0; }
}

/* ---- AI nav gradient (moved from inline styles) ---- */
.ai-nav-gradient {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
@supports not (-webkit-background-clip: text) {
  .ai-nav-gradient { color: var(--brand-accent); }
}

/* =====================================================================
   Page-individuality kit (2026 content overhaul).
   Every marketing page picks: 1 hero variant × 1 tone × its own vignette +
   section modules, assigned in docs/superpowers/specs/
   2026-07-06-landing-overhaul-page-matrix.md so no two sibling pages
   share a combination.
   ===================================================================== */

/* ---- page accent plumbing ----
   Components below color from --page-accent/--page-tint instead of the raw
   brand scale, so a body tone class can re-skin a whole page without any
   markup changes. Defaults = tone-a. */
body {
  --page-accent: var(--brand-600);
  --page-accent-strong: var(--brand-700);
  --page-tint: var(--brand-50);
  --page-tint-border: var(--brand-200);
}
.mk-tone-b {
  --page-accent: var(--brand-700);
  --page-accent-strong: var(--brand-800);
  --page-tint: var(--brand-100);
  --page-tint-border: var(--brand-300);
}
.mk-tone-b .mk-section--alt { background: var(--brand-50); }
.mk-tone-c .mk-hero {
  background: var(--ink-1);
}
.mk-tone-c .mk-hero h1, .mk-tone-c .mk-hero h1 .mk-accent { color: #fff; }
.mk-tone-c .mk-hero h1 .mk-accent { color: var(--brand-300); }
.mk-tone-c .mk-hero .mk-sub { color: rgba(255, 255, 255, .75); }
.mk-tone-c .mk-hero .mk-pill { background: rgba(255, 255, 255, .08); color: var(--brand-200); border-color: rgba(255, 255, 255, .15); }
.mk-tone-d {
  --page-accent: var(--brand-accent);
  --page-accent-strong: color-mix(in srgb, var(--brand-accent) 80%, black);
  --page-tint: color-mix(in srgb, var(--brand-accent) 8%, white);
  --page-tint-border: color-mix(in srgb, var(--brand-accent) 25%, white);
}

/* re-point accent-aware pieces of the base kit at the page accent */
.mk-eyebrow { color: var(--page-accent); }
.mk-feature .mk-feature-icon { background: var(--page-tint); color: var(--page-accent); }
.mk-pill { background: var(--page-tint); color: var(--page-accent-strong); border-color: var(--page-tint-border); }

/* ---- hero variants ---- */
/* split: text left, vignette/screenshot right (markup uses the grid) */
.mk-hero--split { padding: var(--space-12) 0 var(--space-12); }
.mk-hero--split .mk-hero-media { display: flex; align-items: center; justify-content: center; }

/* panel: content sits in a rounded tinted panel, media overlaps below */
.mk-hero--panel { padding: var(--space-8) 0 0; background: transparent; }
.mk-hero--panel .mk-hero-panel {
  background: var(--page-tint);
  border: 1px solid var(--page-tint-border);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8) var(--space-12);
}
.mk-hero--panel .mk-hero-overlap { margin-top: calc(-1 * var(--space-10)); }

/* stat: oversized number leads */
.mk-hero--stat .mk-hero-number {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--page-accent);
  margin-bottom: var(--space-2);
}
.mk-hero--stat h1 { font-size: clamp(1.8rem, 3.2vw, var(--text-3xl)); }

/* ---- vignette frame (inline SVG scenes from Views/Shared/Marketing/) ---- */
.mk-vignette {
  color: var(--page-accent);
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: var(--space-6);
}
.mk-vignette svg { display: block; width: 100%; height: auto; }
.mk-vignette--bare { background: transparent; border: 0; box-shadow: none; padding: 0; }
.mk-vignette--browser { padding: 0; overflow: hidden; }
.mk-vignette--browser .mk-vignette-chrome {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-1);
}
.mk-vignette--browser .mk-vignette-chrome i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); display: inline-block;
}
.mk-vignette--browser .mk-vignette-body { padding: var(--space-6); }

/* ---- split rows: alternating media/text ---- */
.mk-split { padding: var(--space-12) 0; }
/* Tightly-stacked split rows on a feature page share one section — collapse
   the gap between them. But when each split is ALSO a standalone .mk-section
   (e.g. the /how steps, which alternate backgrounds), keep symmetric top+bottom
   padding so bands don't clip their content. */
.mk-split + .mk-split { padding-top: 0; }
.mk-split.mk-section + .mk-split.mk-section { padding-top: var(--space-12); }
.mk-split h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: var(--tracking-tight); }
.mk-split .mk-sub { max-width: 52ch; }

/* ---- numbered steps ---- */
.mk-steps { counter-reset: mk-step; }
.mk-step { position: relative; padding-left: 64px; margin-bottom: var(--space-8); }
.mk-step::before {
  counter-increment: mk-step;
  content: counter(mk-step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--page-tint);
  color: var(--page-accent);
  font-weight: 700;
}
.mk-step h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-1); }
.mk-step p { color: var(--ink-2); font-size: var(--text-sm); margin: 0; max-width: 56ch; }

/* ---- How page: big step number + share method grid ---- */
.mk-how-step-num {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--page-tint);
  color: var(--page-accent);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}
.mk-share-grid { --gap: var(--space-3); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.mk-share-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--ink-1);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.mk-share-item:hover { border-color: var(--page-accent); box-shadow: var(--shadow-1); }
.mk-share-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.mk-share-icon img { width: 20px; height: 20px; display: block; }
.mk-share-icon svg { width: 20px; height: 20px; color: var(--page-accent); }
.mk-protip {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--page-tint);
  border-radius: var(--radius-md);
  color: var(--ink-1);
  font-size: var(--text-sm);
}
.mk-protip .fe { color: var(--page-accent); margin-top: 2px; }
@media (max-width: 767px) {
  .mk-share-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- How page: real-app UI mockups (browser-framed) ---- */
.mk-ui-window {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.mk-ui-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--line);
}
.mk-ui-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mk-ui-body { padding: var(--space-5); }
.mk-ui-card {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
/* form field */
.mk-ui-field { margin-bottom: var(--space-4); }
.mk-ui-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); margin-bottom: 6px; }
.mk-ui-input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: var(--text-sm);
  color: var(--ink-3);
  background: var(--surface-1);
}
.mk-ui-input--active { color: var(--ink-1); background: var(--surface-0); border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100); position: relative; }
.mk-ui-caret { display: inline-block; width: 1.5px; height: 15px; background: var(--brand-600); margin-left: 2px; vertical-align: -2px; }
.mk-ui-textarea { min-height: 52px; }
.mk-ui-hint { font-size: var(--text-xs); color: var(--ink-3); margin: 6px 0 0; line-height: 1.4; }
.mk-ui-hint i { font-style: italic; color: var(--ink-2); }
/* toggle */
.mk-ui-switchrow { display: flex; align-items: center; gap: 10px; margin: var(--space-2) 0 var(--space-5); }
.mk-ui-switch { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-2); position: relative; flex-shrink: 0; }
.mk-ui-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: left var(--dur-fast) var(--ease-out); }
.mk-ui-switch--on { background: var(--brand-600); }
.mk-ui-switch--on::after { left: 19px; }
.mk-ui-switch-label { font-size: var(--text-sm); color: var(--ink-1); }
.mk-ui-actions { display: flex; justify-content: flex-end; }
.mk-ui-btn { background: var(--brand-600); color: #fff; font-size: var(--text-sm); font-weight: 600; padding: 9px 16px; border-radius: var(--radius-md); }
/* share bar mock */
.mk-ui-share-title { font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); margin-bottom: var(--space-3); }
.mk-ui-urlbar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 8px 8px 12px; background: var(--surface-1); }
.mk-ui-url-lock { color: var(--ink-3); font-size: 13px; }
.mk-ui-url { flex: 1; font-size: var(--text-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-ui-copy { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--brand-600); color: #fff; flex-shrink: 0; }
.mk-ui-share-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.mk-ui-share-chip { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-0); }
.mk-ui-share-chip img { width: 20px; height: 20px; }
.mk-ui-share-chip--qr { color: var(--ink-2); }
.mk-ui-share-chip--qr svg { width: 20px; height: 20px; }
/* suggestion list mock */
.mk-ui-list-head { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); }
.mk-ui-list-head .fe { color: var(--brand-600); }
.mk-ui-sugg { padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.mk-ui-sugg--last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.mk-ui-sugg-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mk-ui-time { font-size: var(--text-xs); color: var(--ink-3); }
.mk-ui-sugg-text { font-size: var(--text-sm); color: var(--ink-1); line-height: 1.5; margin: 0; }
/* AI sentiment chip — mirrors the app's purple bg-ai treatment */
.mk-ui-sentiment { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.mk-ui-sentiment .fe { font-size: 11px; }
.mk-ui-sentiment--pos { color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 10%, white); border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, white); }
.mk-ui-sentiment--neu { color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); }

/* ---- /features mock extensions ---- */
/* anonymous submit */
.mk-ui-anon-head { margin-bottom: var(--space-3); }
.mk-ui-anon-badge { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--brand-600); background: var(--brand-50); border: 1px solid var(--brand-200); }
.mk-ui-anon-list { list-style: none; padding: 0; margin: var(--space-3) 0 var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.mk-ui-anon-list li { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: var(--ink-2); }
.mk-ui-anon-list .fe { color: var(--success); }
/* AI insights panel */
.mk-ui-ai-head { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--ink-1); margin-bottom: var(--space-4); }
.mk-ui-ai-head .fe { color: var(--brand-accent); }
.mk-ui-ai-toprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mk-ui-ai-label { font-size: var(--text-xs); color: var(--ink-3); }
.mk-ui-ai-badges { display: flex; gap: 5px; }
.mk-ui-badge { font-size: 11px; font-weight: 700; color: #fff; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; }
.mk-ui-badge--neg { background: var(--danger); }
.mk-ui-badge--neu { background: var(--warning); }
.mk-ui-badge--pos { background: var(--success); }
.mk-ui-sentiment-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.mk-ui-seg--neg { background: var(--danger); }
.mk-ui-seg--neu { background: var(--warning); }
.mk-ui-seg--pos { background: var(--success); }
.mk-ui-ai-overall { text-align: center; font-weight: 700; color: var(--brand-accent); font-size: var(--text-sm); margin-top: 8px; }
.mk-ui-ai-overall span { color: var(--ink-3); font-weight: 400; }
.mk-ui-ai-summary { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.mk-ui-ai-summary-tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 600; color: var(--brand-accent); margin-bottom: 6px; }
.mk-ui-ai-summary p { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; margin: 0; }
/* reply thread */
.mk-ui-reply { margin-top: var(--space-3); padding-left: var(--space-4); border-left: 2px solid var(--line); }
.mk-ui-reply-who { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); }
.mk-ui-reply--owner .mk-ui-reply-who { color: var(--brand-600); }
.mk-ui-reply p { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; margin: 2px 0 0; }
.mk-ui-reply-box { display: flex; align-items: center; gap: 8px; margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 8px 8px 12px; background: var(--surface-1); }
.mk-ui-reply-input { flex: 1; font-size: var(--text-sm); color: var(--ink-3); }
/* workspace tabs + actions */
.mk-ui-tabs { display: flex; gap: 6px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); flex-wrap: wrap; }
.mk-ui-tab { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); padding: 5px 10px; border-radius: var(--radius-sm); }
.mk-ui-tab b { font-weight: 700; opacity: .7; margin-left: 2px; }
.mk-ui-tab--on { color: var(--brand-700); background: var(--brand-50); }
.mk-ui-sugg-actions { display: flex; gap: 14px; margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.mk-ui-sugg-actions .mk-ui-star-on { color: var(--warning); }
.mk-ui-sentiment--neg { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, white); border: 1px solid color-mix(in srgb, var(--danger) 25%, white); }

/* ---- homepage dashboard mock (_HomeDashboard) ---- */
.mk-ui-appnav { display: flex; align-items: center; gap: var(--space-3); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-0); }
.mk-ui-appnav-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--text-sm); color: var(--ink-1); }
.mk-ui-appnav-brand .fe { color: var(--brand-600); }
.mk-ui-appnav-links { display: flex; gap: var(--space-4); margin-left: var(--space-4); }
.mk-ui-appnav-link { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); }
.mk-ui-appnav-link--on { color: var(--brand-600); }
.mk-ui-appnav-user { margin-left: auto; color: var(--ink-3); font-size: 16px; }

.mk-ui-dash-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.mk-ui-dash-title { font-size: var(--text-lg); font-weight: 700; color: var(--ink-1); margin: 0; }
.mk-ui-btn--success { background: var(--success); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mk-ui-btn--success .fe { font-size: 13px; }

.mk-ui-dash { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-4); }
.mk-ui-dash-main { display: flex; flex-direction: column; gap: var(--space-3); }

.mk-ui-boxcard { display: flex; align-items: flex-start; gap: var(--space-3); background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.mk-ui-boxcard-icon { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-600); font-size: 15px; }
.mk-ui-boxcard-main { flex: 1; min-width: 0; }
.mk-ui-boxcard-name { font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); margin-bottom: 5px; }
.mk-ui-boxcard-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--text-xs); color: var(--ink-3); margin-bottom: 5px; }
.mk-ui-boxcard-meta .mk-ui-time { display: inline-flex; align-items: center; gap: 3px; }
.mk-ui-boxcard-url { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); color: var(--brand-600); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ui-boxcard-url .fe { color: var(--ink-3); flex-shrink: 0; }
.mk-ui-boxcard-view { flex-shrink: 0; align-self: center; font-size: var(--text-xs); font-weight: 600; color: #fff; background: var(--brand-600); padding: 6px 14px; border-radius: var(--radius-sm); }

.mk-ui-activity-head { font-size: var(--text-sm); font-weight: 700; color: var(--ink-1); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); }
.mk-ui-activity-item { display: flex; gap: var(--space-3); padding-bottom: var(--space-3); margin-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.mk-ui-activity-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.mk-ui-activity-dot { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-size: 12px; }
.mk-ui-activity-main { flex: 1; min-width: 0; }
.mk-ui-activity-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-ui-activity-name { font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); }
.mk-ui-activity-quote { font-size: var(--text-xs); color: var(--ink-2); line-height: 1.5; background: var(--surface-1); border-radius: var(--radius-sm); padding: 8px 10px; margin-top: 6px; }

@media (max-width: 640px) {
  .mk-ui-dash { grid-template-columns: 1fr; }
  .mk-ui-appnav-links { display: none; }
}

/* ---- pull-quote / scenario band ---- */
.mk-quote {
  border-left: 3px solid var(--page-accent);
  background: var(--surface-1);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-lg);
  color: var(--ink-1);
  line-height: 1.5;
}
.mk-quote footer { font-size: var(--text-sm); color: var(--ink-3); margin-top: var(--space-3); }

/* ---- checklist ---- */
.mk-checklist { list-style: none; padding: 0; margin: 0; }
.mk-checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: var(--space-3);
  color: var(--ink-2);
}
.mk-checklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--page-tint);
}
.mk-checklist li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--page-accent);
  border-bottom: 2px solid var(--page-accent);
  transform: rotate(-45deg);
}
.mk-checklist li strong { color: var(--ink-1); }

/* ---- comparison table (compare pages) ---- */
.mk-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.mk-compare-table th, .mk-compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mk-compare-table thead th {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface-1);
}
.mk-compare-table thead th:nth-child(2) { color: var(--page-accent-strong); background: var(--page-tint); }
.mk-compare-table tbody td:nth-child(2) { background: color-mix(in srgb, var(--page-tint) 45%, white); font-weight: 500; color: var(--ink-1); }
.mk-compare-table tbody tr:last-child th, .mk-compare-table tbody tr:last-child td { border-bottom: 0; }
.mk-compare-table .mk-yes { color: var(--success); font-weight: 700; }
.mk-compare-table .mk-no { color: var(--ink-3); }
.mk-compare-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.mk-compare-note { font-size: var(--text-xs); color: var(--ink-3); margin-top: var(--space-3); }

/* ---- horizontal feature row (breaks the 3-col card grid rhythm) ---- */
.mk-feature--row { display: flex; gap: var(--space-5); align-items: flex-start; height: auto; }
.mk-feature--row .mk-feature-icon { margin-bottom: 0; flex-shrink: 0; }

/* ---- FAQ accordion (details.mk-feature) ----
   The Landkit theme bundle interferes with native <details> hiding, so
   closed state is enforced explicitly. Cards size to content, not the
   100% card height used in feature grids. */
details.mk-feature { height: auto; }
details.mk-feature summary { cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
details.mk-feature summary::-webkit-details-marker { display: none; }
details.mk-feature summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
}
details.mk-feature[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details.mk-feature:not([open]) > *:not(summary) { display: none; }

/* ---- related-pages strip ---- */
.mk-related { padding: var(--space-10) 0; border-top: 1px solid var(--line); }
.mk-related h2 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-5); }
/* Card styles target the class directly (not only inside .mk-related) so the
   compare hub, which uses these cards outside an .mk-related wrapper, styles
   identically — including the block-level subtitle span. */
a.mk-related-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  color: var(--ink-1);
  font-weight: 600;
  font-size: var(--text-sm);
  height: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.mk-related-card:hover { border-color: var(--page-accent); box-shadow: var(--shadow-1); }
a.mk-related-card span { display: block; color: var(--ink-3); font-weight: 400; font-size: var(--text-xs); margin-top: 4px; }

@media (max-width: 767px) {
  .mk-hero { padding: var(--space-8) 0 var(--space-10); }
  .mk-section { padding: var(--space-10) 0; }
  .mk-hero--panel .mk-hero-panel { padding: var(--space-8) var(--space-5); }
  .mk-step { padding-left: 56px; }
}

/* ---- homepage product carousel ---- */
.mk-carousel { position: relative; }
.mk-carousel-viewport { overflow: hidden; }
.mk-carousel-track { display: flex; align-items: center; transition: transform .5s ease; }
.mk-carousel-slide { flex: 0 0 100%; min-width: 100%; padding: var(--space-2) var(--space-1) 0; }
.mk-carousel-center { max-width: 560px; margin: 0 auto; }
.mk-carousel-cap { text-align: center; color: var(--ink-3); font-size: var(--text-sm); margin-top: var(--space-4); }
.mk-carousel-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-0); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-1); cursor: pointer; z-index: 2;
}
.mk-carousel-arrow:hover { color: var(--brand-700); border-color: var(--brand-300); background: var(--brand-50); }
.mk-carousel-prev { left: -8px; }
.mk-carousel-next { right: -8px; }
.mk-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-3); }
.mk-carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .2s ease, background .2s ease; }
.mk-carousel-dot.is-on { background: var(--brand-600); width: 22px; }
@media (max-width: 767px) {
  .mk-carousel-prev { left: 2px; }
  .mk-carousel-next { right: 2px; }
  .mk-carousel-arrow { width: 34px; height: 34px; }
}

/* ---- feature mockups: QR / embed / custom URL ---- */
.mk-ui-qr { text-align: center; }
.mk-ui-qr-frame {
  width: 168px; height: 168px; margin: 4px auto var(--space-3);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px; box-shadow: var(--shadow-1);
}
.mk-ui-qr-frame svg { width: 100%; height: 100%; display: block; }
.mk-ui-qr-caption { font-weight: 600; color: var(--ink-1); font-size: var(--text-sm); }
.mk-ui-qr-url { margin-top: 6px; font-size: var(--text-xs); color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }

.mk-ui-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.6; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 10px 12px; margin-bottom: var(--space-4);
  overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.mk-ui-code-tag { color: var(--brand-700); }
.mk-ui-code-str { color: var(--success); }
.mk-ui-embed-preview { border: 1px dashed var(--line); border-radius: var(--radius-md); padding: var(--space-3); background: var(--surface-1); }
.mk-ui-embed-widget { background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); }
.mk-ui-embed-w-title { font-weight: 600; color: var(--ink-1); font-size: var(--text-sm); margin-bottom: 8px; }
.mk-ui-embed-widget .mk-ui-btn { display: inline-block; margin-top: 8px; }

.mk-ui-url-edit {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--brand-400); border-radius: var(--radius-md);
  padding: 10px 12px; background: var(--surface-0);
  box-shadow: 0 0 0 3px var(--brand-100); font-size: var(--text-sm);
}
.mk-ui-url-base { color: var(--ink-3); }
.mk-ui-url-slug { color: var(--ink-1); font-weight: 600; background: var(--brand-50); border-radius: 4px; padding: 1px 4px; }
.mk-ui-url-ok { margin-left: auto; color: var(--success); }
.mk-ui-url-was { margin-top: 8px; font-size: var(--text-xs); color: var(--ink-3); }
.mk-ui-url-was-old { text-decoration: line-through; opacity: .75; }
