/* ============================================================================
   marketing.css — Public marketing site (Home / Features / Pricing / Demo).
   Loaded AFTER spec/coming_soon.css, so it reuses every --cs-* design token
   and the .cs-nav / .cs-btn / .cs-footer chrome already defined there. Adds
   only the long-scroll marketing layout: hero, sections, feature grid,
   screenshot frames, steps, pricing, FAQ, CTA band. Self-contained on the
   --cs-* tokens; does NOT depend on master.css (keeps marketing pages light).
   ============================================================================ */

:root {
    --mk-maxw:     1140px;
    --mk-gap:      24px;
    --mk-radius:   14px;
    --mk-section:  84px;
    --mk-shadow-soft: 0 1px 2px rgba(15,20,25,.04), 0 8px 24px rgba(15,20,25,.06);
    --mk-shadow-pop:  0 24px 60px -20px rgba(13,148,136,.28), 0 12px 28px rgba(15,20,25,.10);
    /* Brand display font (Urbanist is @font-face'd in init/custom.css + preloaded
       by the shells) for headers + the price figure, with a softened on-brand
       slate-black that is easier on the eyes than the near-black --cs-ink. */
    --mk-font-head: 'Urbanist', var(--cs-font);
    --mk-ink-head:  #242b34;
}

/* ── Marketing body: long-scroll, top-aligned (overrides coming_soon's
   centered single-screen main). body class="cs-body market-body". ──────── */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }   /* offset for the sticky cs-nav on anchor jumps */
.mk-more { margin-top: 36px; text-align: center; }
.cs-body.market-body { display: block; background: var(--cs-white); }
.cs-body.market-body main {
    display: block;
    flex: none;
    align-items: initial;
    justify-content: initial;
}

/* No body-level opacity fade: CSS is render-blocking so there is no FOUC, and a
   body-wide opacity animation promotes the whole (tall) page to one composited
   layer that some GPUs rasterize at reduced resolution -> pixelated text. */

/* ── Layout primitives ─────────────────────────────────────────────────── */
.mk-container { width: 100%; max-width: var(--mk-maxw); margin: 0 auto; padding: 0 24px; }
.mk-section   { padding: var(--mk-section) 0; }
.mk-section.tight { padding: 56px 0; }
.mk-section.alt   { background: var(--cs-ink-02); border-block: 1px solid var(--cs-ink-05); }

.mk-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.mk-head.left { margin-left: 0; text-align: left; }
.mk-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .16em; color: var(--cs-accent-dark);
    background: var(--cs-accent-light); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.mk-h2 {
    font-family: var(--mk-font-head);
    font-size: clamp(27px, 3.4vw, 39px); font-weight: 700; letter-spacing: -.02em;
    line-height: 1.15; color: var(--mk-ink-head); margin: 0 0 14px;
}
.mk-lede { font-size: 17px; line-height: 1.6; color: var(--cs-ink-60); margin: 0; }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.mk-hero {
    position: relative; overflow: hidden;
    padding: 72px 0 0;
    background:
        radial-gradient(60% 70% at 50% -10%, var(--cs-accent-muted) 0%, transparent 70%),
        radial-gradient(40% 50% at 100% 0%, var(--cs-accent-light) 0%, transparent 60%);
}
.mk-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; padding: 0 24px; }
.mk-hero h1 {
    font-family: var(--mk-font-head);
    font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; letter-spacing: -.025em;
    line-height: 1.07; color: var(--mk-ink-head); margin: 18px 0 18px;
}
.mk-hero h1 .acc { color: var(--cs-accent); }
.mk-hero-sub { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.55; color: var(--cs-ink-60); margin: 0 auto 30px; max-width: 620px; }
.mk-hero .cs-cta-row { margin-bottom: 14px; }
.mk-hero-note { font-size: 13px; color: var(--cs-ink-40); margin: 0 0 56px; }
.mk-hero-note strong { color: var(--cs-ink-60); font-weight: 600; }

/* Hero product screenshot — sits half-out of the hero gradient. */
.mk-hero-shot { max-width: 1040px; margin: 0 auto; padding: 0 24px; transform: translateY(8px); }

/* ── Browser/screenshot frame ──────────────────────────────────────────── */
.mk-frame {
    border-radius: var(--mk-radius); background: var(--cs-white);
    border: 1px solid var(--cs-ink-10); box-shadow: var(--mk-shadow-pop); overflow: hidden;
}
.mk-frame-bar {
    display: flex; align-items: center; gap: 7px; padding: 11px 14px;
    background: var(--cs-ink-02); border-bottom: 1px solid var(--cs-ink-05);
}
.mk-frame-bar i { width: 11px; height: 11px; border-radius: 999px; background: var(--cs-ink-10); display: block; }
.mk-frame-bar i:nth-child(1) { background: #FF5F57; }
.mk-frame-bar i:nth-child(2) { background: #FEBC2E; }
.mk-frame-bar i:nth-child(3) { background: #28C840; }
.mk-frame-bar .mk-frame-url {
    margin-left: 10px; font-size: 12px; color: var(--cs-ink-40);
    background: var(--cs-white); border: 1px solid var(--cs-ink-05);
    border-radius: 999px; padding: 3px 14px; flex: 1; max-width: 320px;
}
.mk-frame img { display: block; width: 100%; height: auto; }
.mk-frame.plain { border-radius: var(--mk-radius); }
.mk-frame.plain .mk-frame-bar { display: none; }
/* Click any framed screenshot to open it in the lightbox. */
.mk-frame { cursor: zoom-in; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.mk-frame:hover { transform: translateY(-2px); }

/* ── Audience / trust strip ────────────────────────────────────────────── */
.mk-trust { text-align: center; }
.mk-trust-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-ink-40); margin: 0 0 18px; }
.mk-trust-row { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; }
.mk-chip {
    font-size: 14px; font-weight: 600; color: var(--cs-ink-60);
    background: var(--cs-white); border: 1px solid var(--cs-ink-10);
    border-radius: 999px; padding: 8px 16px;
}

/* ── Feature grid ──────────────────────────────────────────────────────── */
.mk-grid { display: grid; gap: var(--mk-gap); grid-template-columns: repeat(3, 1fr); }
.mk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mk-card {
    background: var(--cs-white); border: 1px solid var(--cs-ink-10);
    border-radius: var(--mk-radius); padding: 26px 24px; box-shadow: var(--mk-shadow-soft);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.mk-card:hover { transform: translateY(-3px); box-shadow: var(--mk-shadow-pop); border-color: var(--cs-accent-light); }
.mk-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 11px; margin-bottom: 16px;
    background: var(--cs-accent-muted); color: var(--cs-accent-dark);
}
.mk-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-card h3 { font-family: var(--mk-font-head); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--mk-ink-head); margin: 0 0 7px; }
.mk-card p  { font-size: 14px; line-height: 1.6; color: var(--cs-ink-60); margin: 0; }

/* ── Split (text + screenshot) sections ────────────────────────────────── */
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mk-split + .mk-split { margin-top: var(--mk-section); }
.mk-split.reverse .mk-split-media { order: -1; }
.mk-split-copy h3 { font-family: var(--mk-font-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; color: var(--mk-ink-head); margin: 12px 0 14px; }
.mk-split-copy p { font-size: 16px; line-height: 1.65; color: var(--cs-ink-60); margin: 0 0 18px; }
.mk-checklist { list-style: none; margin: 0; padding: 0; }
.mk-checklist li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: 15px; line-height: 1.5; color: var(--cs-ink); }
.mk-checklist li svg { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; color: var(--cs-accent); stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── How it works (steps) ──────────────────────────────────────────────── */
.mk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--mk-gap); counter-reset: step; }
.mk-step { position: relative; padding-top: 8px; }
.mk-step-num {
    width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: var(--cs-white);
    background: linear-gradient(135deg, var(--cs-accent), var(--cs-accent-dark));
    box-shadow: 0 6px 16px -6px rgba(13,148,136,.6); margin-bottom: 14px;
}
.mk-step h4 { font-family: var(--mk-font-head); font-size: 16.5px; font-weight: 700; color: var(--mk-ink-head); margin: 0 0 6px; letter-spacing: -.01em; }
.mk-step p  { font-size: 14px; line-height: 1.55; color: var(--cs-ink-60); margin: 0; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.mk-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.mk-price-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--cs-white); border: 1px solid var(--cs-ink-10);
    border-radius: var(--mk-radius); padding: 28px 24px; box-shadow: var(--mk-shadow-soft);
}
.mk-price-card.pop { border-color: var(--cs-accent); box-shadow: var(--mk-shadow-pop); transform: translateY(-6px); }
.mk-price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--cs-white); background: var(--cs-accent); padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}
.mk-price-name { font-size: 15px; font-weight: 700; color: var(--cs-ink); margin: 0 0 4px; }
.mk-price-range { font-size: 13px; color: var(--cs-ink-40); margin: 0 0 16px; }
.mk-price-amt { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.mk-price-amt .num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--cs-ink); }
.mk-price-amt .per { font-size: 13px; color: var(--cs-ink-60); }
.mk-price-sub { font-size: 12.5px; color: var(--cs-ink-40); margin: 0 0 20px; min-height: 16px; }
.mk-price-card .cs-btn { width: 100%; }
.mk-price-feats { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--cs-ink-05); }
.mk-price-feats li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 13px; line-height: 1.45; color: var(--cs-ink-60); }
.mk-price-feats li svg { position: absolute; left: 0; top: 2px; width: 15px; height: 15px; color: var(--cs-accent); stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Graduated-rate explainer + bracket table */
.mk-rate-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mk-table { width: 100%; border-collapse: collapse; background: var(--cs-white); border: 1px solid var(--cs-ink-10); border-radius: var(--mk-radius); overflow: hidden; }
.mk-table th, .mk-table td { text-align: left; padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--cs-ink-05); }
.mk-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cs-ink-40); font-weight: 700; background: var(--cs-ink-02); }
.mk-table td:last-child { text-align: right; font-weight: 700; color: var(--cs-ink); }
.mk-table tr:last-child td { border-bottom: none; }
.mk-example {
    background: var(--cs-accent-muted); border: 1px solid var(--cs-accent-light);
    border-radius: var(--mk-radius); padding: 24px 26px;
}
.mk-example h4 { font-size: 14px; font-weight: 700; color: var(--cs-accent-dark); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.mk-example p { font-size: 14px; line-height: 1.7; color: var(--cs-ink-60); margin: 0; }
.mk-example .total { display: block; margin-top: 12px; font-size: 22px; font-weight: 800; color: var(--cs-ink); letter-spacing: -.02em; }

/* "Everything included" banner list */
.mk-incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 28px; }
.mk-incl-grid li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: var(--cs-ink); list-style: none; }
.mk-incl-grid li svg { position: absolute; left: 0; top: 2px; width: 17px; height: 17px; color: var(--cs-accent); stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.mk-faq { max-width: 760px; margin: 0 auto; }
.mk-faq-item { border-bottom: 1px solid var(--cs-ink-10); padding: 22px 0; }
.mk-faq-item h4 { font-family: var(--mk-font-head); font-size: 16.5px; font-weight: 700; color: var(--mk-ink-head); margin: 0 0 8px; letter-spacing: -.01em; }
.mk-faq-item p { font-size: 14.5px; line-height: 1.65; color: var(--cs-ink-60); margin: 0; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.mk-cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cs-accent) 0%, var(--cs-accent-dark) 100%); }
.mk-cta-band .mk-container { text-align: center; padding-block: 64px; position: relative; z-index: 1; }
.mk-cta-band h2 { font-family: var(--mk-font-head); font-size: clamp(27px, 3.4vw, 39px); font-weight: 700; letter-spacing: -.02em; color: var(--cs-white); margin: 0 0 12px; }
.mk-cta-band p { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.85); margin: 0 auto 28px; max-width: 520px; }
.mk-cta-band .cs-btn-primary { background: var(--cs-white); color: var(--cs-accent-dark); }
.mk-cta-band .cs-btn-primary:hover { background: var(--cs-accent-light); color: var(--cs-accent-dark); }
.mk-cta-band .cs-btn-ghost { color: var(--cs-white); border-color: rgba(255,255,255,.5); }
.mk-cta-band .cs-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--cs-white); }

/* ── Nav links (right-aligned, quiet). Only the link + spacing styling is
      tuned here. Nav HEIGHT and the CTA size are deliberately NOT overridden:
      the marketing nav reuses the shared coming_soon.css chrome (padding
      20px 32px, base .cs-btn CTA) so it renders the exact same height as the
      auth (/login/) and legal shells. A prior `padding-block:16px` + shrunken
      CTA here made the marketing nav 10px shorter, so it visibly jumped taller
      the moment you crossed into /login/. Keep them in lockstep. ──────────── */
.cs-nav-actions { gap: 24px; }
.cs-nav-link {
    font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
    color: var(--cs-ink-60); text-decoration: none; transition: color 0.14s ease;
}
.cs-nav-link:hover { color: var(--cs-ink); }
.cs-nav-link.active { color: var(--cs-accent-dark); }

/* ── Demo / request form ───────────────────────────────────────────────── */
.mk-form-wrap { max-width: 560px; margin: 0 auto; }
/* HubSpot round-robin meeting scheduler — direct iframe (TQ100473).
   Direct iframe (not HubSpot's MeetingsEmbedCode.js, which Cloudflare 403s for
   some clients and left the embed blank). The meeting URL sends no X-Frame-Options,
   so it frames cleanly. Fixed height + internal scroll (no auto-resize script). */
.mk-scheduler-wrap { max-width: 880px; margin: 0 auto; }
.mk-scheduler-iframe { width: 100%; height: 760px; border: 0; display: block;
    border-radius: var(--mk-radius); background: var(--cs-white); }
@media (max-width: 640px) { .mk-scheduler-iframe { height: 88vh; min-height: 620px; } }
.mk-form { background: var(--cs-white); border: 1px solid var(--cs-ink-10); border-radius: var(--mk-radius); box-shadow: var(--mk-shadow-soft); padding: 32px 30px; }
.mk-field { margin-bottom: 16px; }
.mk-field label { display: block; font-size: 13px; font-weight: 600; color: var(--cs-ink); margin-bottom: 6px; }
.mk-field label .req { color: var(--cs-accent); }
.mk-field input, .mk-field textarea {
    width: 100%; font-family: var(--cs-font); font-size: 14px; color: var(--cs-ink);
    background: var(--cs-white); border: 1px solid var(--cs-ink-10); border-radius: var(--cs-radius);
    padding: 11px 13px; transition: border-color .12s ease, box-shadow .12s ease;
}
.mk-field input:focus, .mk-field textarea:focus { outline: none; border-color: var(--cs-accent); box-shadow: 0 0 0 3px var(--cs-accent-muted); }
.mk-field textarea { resize: vertical; min-height: 92px; }
.mk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-form .cs-btn { width: 100%; margin-top: 6px; }
.mk-form-msg { font-size: 13.5px; margin-top: 14px; text-align: center; }
.mk-form-msg.err { color: var(--cs-red, #CB2323); }
.mk-form-ok { text-align: center; padding: 18px 0; }
.mk-form-ok svg { width: 52px; height: 52px; color: var(--cs-accent); stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.mk-form-ok h3 { font-size: 20px; font-weight: 800; color: var(--cs-ink); margin: 0 0 8px; }
.mk-form-ok p { font-size: 14.5px; color: var(--cs-ink-60); margin: 0; line-height: 1.6; }

/* ── Screenshot lightbox (lightweight, no library) ─────────────────────── */
.mk-lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 40px;
    background: rgba(15, 20, 25, 0.74);
    -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    opacity: 0; visibility: hidden; transition: opacity 0.22s ease, visibility 0.22s ease;
}
.mk-lightbox.open { opacity: 1; visibility: visible; }
.mk-lightbox-img {
    max-width: min(1180px, 94vw); max-height: 90vh; width: auto; height: auto;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.96); transition: transform 0.22s cubic-bezier(0.22,0.61,0.36,1);
}
.mk-lightbox.open .mk-lightbox-img { transform: scale(1); }
.mk-lightbox-close {
    position: absolute; top: 20px; right: 24px; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px; color: #fff; cursor: pointer; font-size: 24px; line-height: 1;
    transition: background 0.15s ease, transform 0.15s ease;
}
.mk-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.06); }
body.mk-lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .mk-lightbox, .mk-lightbox-img { transition: none; }
    .mk-frame { transition: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .mk-grid, .mk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .mk-steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .mk-price-grid { grid-template-columns: repeat(2, 1fr); }
    .mk-price-card.pop { transform: none; }
    .mk-split, .mk-split.reverse { grid-template-columns: 1fr; gap: 28px; }
    .mk-split.reverse .mk-split-media { order: 0; }
    .mk-rate-wrap { grid-template-columns: 1fr; gap: 28px; }
    .mk-incl-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-nav-link { display: none; }   /* keep brand + Request a demo only */
}
@media (max-width: 600px) {
    :root { --mk-section: 56px; }
    .mk-grid, .mk-grid.cols-2, .mk-price-grid, .mk-incl-grid { grid-template-columns: 1fr; }
    .mk-form-row { grid-template-columns: 1fr; }
    .mk-hero { padding-top: 48px; }
    .mk-frame-bar .mk-frame-url { display: none; }
    .mk-lightbox { padding: 16px; }
    .mk-lightbox-close { top: 12px; right: 14px; }
}

/* ── Interactive pricing calculator (TQ100389) ──────────────────────────────
   Replaces the old tier cards. priceFor() in pricing.cfm mirrors billing.cfm.
   Chromium-90 safe: no :has(), no container queries. Range thumb/track styled
   for both -webkit- and -moz-. Honors prefers-reduced-motion. ──────────────── */
.mk-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Pricing hero band: the header + the calculator share one radial-washed white
   region so they read as a single anchored hero (not two stacked boxes). */
.mk-pricing-head, .mk-calc-section { background: radial-gradient(72% 130% at 50% 0%, var(--cs-accent-muted) 0%, transparent 60%), var(--cs-white); }
.mk-pricing-head { padding: 72px 0 22px; }
.mk-pricing-head .mk-head { margin-bottom: 20px; }
.mk-page-head .mk-h2 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.025em; line-height: 1.07; }
.mk-calc-section { padding: 22px 0 76px; border-bottom: 1px solid var(--cs-ink-05); }
.mk-calc {
    max-width: 680px; margin: 0 auto; text-align: center;
    background: linear-gradient(180deg, var(--cs-white) 0%, var(--cs-accent-muted) 280%);
    border: 1px solid var(--cs-accent-light);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15,20,25,.04),
                0 18px 40px -16px rgba(15,20,25,.12),
                0 50px 72px -42px rgba(13,148,136,.30);
    padding: 46px 48px 40px;
}

/* ── Price readout: big Urbanist figure, raised $, baseline /mo ─────────── */
.mk-calc-readout { margin-bottom: 34px; }
.mk-calc-total {
    display: flex; align-items: baseline; justify-content: center; gap: 4px;
    font-family: var(--mk-font-head); color: var(--mk-ink-head); line-height: 1;
}
.mk-calc-cur { font-size: 34px; font-weight: 600; align-self: flex-start; letter-spacing: -.01em; }
.mk-calc-amount {
    font-size: clamp(48px, 7.2vw, 70px); font-weight: 700; letter-spacing: -.03em;
    line-height: .9; font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.mk-calc-per { align-self: baseline; font-family: var(--cs-font); font-size: 16px; font-weight: 600; color: var(--cs-ink-40); }

/* Discount pill (lights up once a volume discount exists; quiet hint below 11) */
.mk-calc-save {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    max-width: 100%; white-space: nowrap;
    padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    border: 1px solid transparent; color: var(--cs-ink-40);
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.mk-calc-save svg { flex-shrink: 0; }
.mk-calc-save.is-on { background: var(--cs-accent-muted); border-color: var(--cs-accent-light); color: var(--cs-accent-dark); }
.mk-calc-save.is-off { font-weight: 500; }
.mk-calc-save.is-off svg { display: none; }
.mk-calc-save svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-calc-save strong { font-weight: 800; }
.mk-calc-blended { font-size: 14px; color: var(--cs-ink-60); margin: 14px 0 0; min-height: 20px; }
.mk-calc-blended strong { color: var(--cs-accent-dark); font-weight: 700; }

/* ── Slider: native range overlays a centered visual track; thumb sits ON it ─
   The range fills the 26px row; its runnable-track is the full 26px and
   transparent, so the 22px thumb (margin-top 2px) centers on the 8px visual
   track that is absolutely centered in the same row. No more floating thumb. */
.mk-calc-slider { position: relative; height: 26px; margin: 56px 0 0; }
.mk-calc-track {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    height: 8px; border-radius: 999px; background: var(--cs-ink-05);
    overflow: hidden; pointer-events: none;
}
.mk-calc-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 999px;
    background: linear-gradient(90deg, var(--cs-accent), var(--cs-accent-dark));
    transition: width .16s cubic-bezier(.16,1,.3,1);
}
.mk-calc-bubble {
    position: absolute; bottom: calc(100% + 9px); left: 0; transform: translateX(-50%);
    min-width: 36px; padding: 5px 10px; border-radius: 9px;
    background: var(--mk-ink-head); color: var(--cs-white);
    font-family: var(--cs-font); font-size: 13px; font-weight: 700; line-height: 1.2;
    text-align: center; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(15,20,25,.45);
    transition: left .14s cubic-bezier(.16,1,.3,1);
}
.mk-calc-bubble::after {
    content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--mk-ink-head);
}
.mk-calc-range {
    position: absolute; inset: 0; width: 100%; height: 26px; margin: 0; padding: 0;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background: transparent; cursor: pointer; z-index: 2;
}
.mk-calc-range:focus { outline: none; }
.mk-calc-range::-webkit-slider-runnable-track { height: 26px; background: transparent; border: none; }
.mk-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; margin-top: 2px; border-radius: 999px;
    background: var(--cs-white); border: none;
    box-shadow: 0 0 0 1px rgba(15,20,25,.10), 0 1px 3px rgba(15,20,25,.18), 0 6px 16px -4px rgba(13,148,136,.40);
    transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .18s ease;
    cursor: grab;
}
.mk-calc-range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgba(15,20,25,.10), 0 0 0 6px rgba(13,148,136,.10), 0 1px 3px rgba(15,20,25,.18), 0 6px 16px -4px rgba(13,148,136,.40); }
.mk-calc-range:active::-webkit-slider-thumb { transform: scale(1.1); cursor: grabbing; box-shadow: 0 0 0 1px rgba(15,20,25,.10), 0 0 0 8px rgba(13,148,136,.14), 0 2px 6px rgba(15,20,25,.2); }
.mk-calc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgba(15,20,25,.10), 0 0 0 5px rgba(13,148,136,.22); }
.mk-calc-range::-moz-range-track { height: 26px; background: transparent; border: none; }
.mk-calc-range::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 999px; background: var(--cs-white); border: none;
    box-shadow: 0 0 0 1px rgba(15,20,25,.10), 0 1px 3px rgba(15,20,25,.18), 0 6px 16px -4px rgba(13,148,136,.40);
    transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .18s ease;
}
.mk-calc-range:active::-moz-range-thumb { transform: scale(1.1); }
.mk-calc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px rgba(15,20,25,.10), 0 0 0 5px rgba(13,148,136,.22); }
.mk-calc-range::-moz-focus-outer { border: 0; }

/* Tick labels under the track */
.mk-calc-ticks { position: relative; height: 18px; margin-top: 18px; }
.mk-calc-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--cs-ink-40); white-space: nowrap; }
/* Tick left is set in pricing_calc.js (indexForUnits + a half-thumb inset, the
   same offset positionThumb uses) so labels sit exactly under the native thumb
   centre at each unit count. */
.mk-calc-ticks span:first-child { transform: translateX(0); }
.mk-calc-ticks span:last-child  { transform: translateX(-100%); }

/* Typed input + marginal-rate line */
.mk-calc-controls { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 4px; }
.mk-calc-field { display: inline-flex; align-items: center; gap: 8px; }
.mk-calc-field-lbl { font-size: 13px; font-weight: 600; color: var(--cs-ink-60); }
.mk-calc-num {
    width: 96px; font-family: var(--cs-font); font-size: 15px; font-weight: 700;
    color: var(--cs-ink); text-align: center;
    background: var(--cs-white); border: 1px solid var(--cs-ink-10);
    border-radius: var(--cs-radius); padding: 9px 10px;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.mk-calc-num:focus { outline: none; border-color: var(--cs-accent); box-shadow: 0 0 0 3px var(--cs-accent-muted); }
.mk-calc-rate { font-size: 13px; color: var(--cs-ink-60); margin: 0; }
.mk-calc-rate strong { color: var(--cs-ink); font-weight: 700; }

/* Breakdown toggle + rows */
.mk-calc-toggle {
    display: flex; width: fit-content; align-items: center; gap: 6px; margin: 18px auto 0;
    font-family: var(--cs-font); font-size: 13px; font-weight: 600;
    color: var(--cs-accent-dark); background: none; border: none; cursor: pointer;
    padding: 6px 8px; border-radius: var(--cs-radius);
}
.mk-calc-toggle:hover { background: var(--cs-accent-muted); }
.mk-calc-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.mk-calc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mk-calc-breakdown { margin-top: 14px; text-align: left; }
.mk-calc-rows { list-style: none; margin: 0 auto; padding: 0; max-width: 460px; }
.mk-calc-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--cs-ink-05); font-size: 13.5px; }
.mk-calc-rows li:last-child { border-bottom: none; }
.mk-calc-rows .lbl { color: var(--cs-ink-60); }
.mk-calc-rows .lbl em { font-style: normal; color: var(--cs-ink-40); }
.mk-calc-rows .sub { font-weight: 700; color: var(--cs-ink); font-variant-numeric: tabular-nums; }
.mk-calc-rows li.is-total { border-top: 2px solid var(--cs-ink-10); border-bottom: none; margin-top: 4px; padding-top: 12px; }
.mk-calc-rows li.is-total .lbl { color: var(--cs-ink); font-weight: 700; }
.mk-calc-rows li.is-total .sub { color: var(--cs-accent-dark); font-size: 16px; }

/* Custom / >1000 state */
.mk-calc-custom { margin-top: 24px; padding: 22px 24px; text-align: center; background: var(--cs-accent-muted); border: 1px solid var(--cs-accent-light); border-radius: var(--mk-radius); }
.mk-calc-custom p { font-size: 15px; color: var(--cs-ink); margin: 0 0 14px; }
.mk-calc-cta { margin-top: 26px; }

/* When calc is in custom mode, hide the per-month pieces (JS toggles .is-custom; no :has) */
.mk-calc.is-custom .mk-calc-readout,
.mk-calc.is-custom .mk-calc-controls,
.mk-calc.is-custom .mk-calc-toggle,
.mk-calc.is-custom .mk-calc-breakdown,
.mk-calc.is-custom .mk-calc-cta { display: none; }

/* Adapted rate-note beside the bracket table (replaces the old static example) */
.mk-rate-note { background: var(--cs-accent-muted); border: 1px solid var(--cs-accent-light); border-radius: var(--mk-radius); padding: 24px 26px; }
.mk-rate-note h4 { font-size: 14px; font-weight: 700; color: var(--cs-accent-dark); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.mk-rate-note p { font-size: 14px; line-height: 1.7; color: var(--cs-ink-60); margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .mk-calc-fill, .mk-calc-bubble, .mk-calc-save,
    .mk-calc-range::-webkit-slider-thumb, .mk-calc-range::-moz-range-thumb,
    .mk-calc-toggle svg { transition: none; }
}
@media (max-width: 600px) {
    .mk-calc { padding: 30px 18px 26px; }
    .mk-calc-controls { gap: 8px 14px; }
    .mk-calc-num { width: 84px; }
    /* Keep the discount pill to a single tidy line on phones. */
    .mk-calc-save { font-size: 12px; padding: 5px 12px; gap: 6px; }
    .mk-calc-save svg { width: 13px; height: 13px; }
    .mk-calc-rate { font-size: 12.5px; }
}

/* ════ Premium pass (TQ100389): trust rail, hydrate-gate, drag feel, focus ════ */

/* H3 — trust rail beside the calculator on wide screens */
.mk-calc-rail { margin: 32px auto 0; text-align: left; max-width: 680px; }
.mk-rail-list { list-style: none; margin: 14px 0 0; padding: 0; }
.mk-rail-list li { position: relative; padding-left: 28px; margin-bottom: 13px; font-size: 15px; line-height: 1.5; color: var(--cs-ink); }
.mk-rail-list li svg { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; color: var(--cs-accent); stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 961px) {
    .mk-calc-section .mk-container { display: grid; grid-template-columns: 1fr .66fr; gap: 48px; align-items: center; }
    .mk-calc { margin: 0; max-width: none; }
    .mk-calc-rail { margin: 0; max-width: none; }
}

/* C3 — keep fill/bubble hidden until JS hydrates (no width:0 flash on load) */
.mk-calc:not(.ready) .mk-calc-fill,
.mk-calc:not(.ready) .mk-calc-bubble { opacity: 0; }
.mk-calc.ready .mk-calc-fill,
.mk-calc.ready .mk-calc-bubble { opacity: 1; transition: width .16s cubic-bezier(.16,1,.3,1), left .14s cubic-bezier(.16,1,.3,1), opacity .2s ease; }

/* H4 — no fill/bubble easing during an active drag (thumb tracks the finger) */
.mk-calc.is-dragging .mk-calc-fill,
.mk-calc.is-dragging .mk-calc-bubble { transition: none; }

/* H5 — keyboard focus rings on buttons (inputs already have them) */
.cs-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--cs-accent-muted); }
.mk-cta-band .cs-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
