/* ----- standalone storefront pages (Shop / Cart / OrdersLookup) ----- */
.mk-shop-main {
  background: var(--bg);
  min-height: 70vh;
  padding: 32px 0 64px;
}
.mk-shop-main__inner {
  max-width: var(--mk-max-w);
  margin: 0 auto;
  padding: 0 var(--mk-page-pad-x);
}
.mk-shop-main__inner > .console-hero { margin-top: 0; }

/* ============================================================
 * Fuelio · marketing CSS (landing pages)
 * Inherits the same tokens as the app shell from app.css
 * (brand/fg/bg/border are all oklch + brand-h driven).
 * ============================================================ */

:root {
  --mk-page-pad-x: clamp(20px, 4vw, 56px);
  --mk-max-w: 1240px;
  --mk-grid: 1px solid var(--border);
  /* match Fuelio.html default brand hue (222 = sky-blue indigo) */
  --brand-h: 222;
}
/* Marketing surfaces inherit from tokens.css (indigo brand, zinc neutrals).
   Add the few extras we use only on landing pages.                      */
[data-theme='dark'] {
  --mk-bg: var(--bg);                /* #09090b */
  --mk-bg-elev: var(--bg-elev-1);    /* #0f0f12 */
  --mk-bg-card: var(--bg-card);      /* #111114 */
  --mk-line: var(--border);          /* #232327 */
  --mk-line-strong: var(--border-strong);
  --mk-fg: var(--fg);
  --mk-fg-muted: var(--fg-muted);
  --mk-fg-faint: var(--fg-faint);

  /* indigo glow used in hero/cta bands — uses brand var so Tweaks brand-hue stays in sync */
  --mk-glow: radial-gradient(1200px 480px at 50% -20%, var(--brand-soft) 0%, transparent 65%);
  --mk-band: linear-gradient(180deg, oklch(0.30 0.14 var(--brand-h)) 0%, oklch(0.36 0.16 var(--brand-h)) 60%, oklch(0.44 0.20 var(--brand-h)) 120%);
  --mk-band-fg: #ffffff;
}
[data-theme='light'] {
  --mk-bg: var(--bg);
  --mk-bg-elev: var(--bg-elev-1);
  --mk-bg-card: var(--bg-card);
  --mk-line: var(--border);
  --mk-line-strong: var(--border-strong);
  --mk-fg: var(--fg);
  --mk-fg-muted: var(--fg-muted);
  --mk-fg-faint: var(--fg-faint);

  --mk-glow: radial-gradient(1200px 480px at 50% -20%, var(--brand-soft) 0%, transparent 65%);
  --mk-band: linear-gradient(180deg, var(--brand) 0%, var(--brand-hover) 100%);
  --mk-band-fg: #ffffff;
}

html, body { background: var(--mk-bg); color: var(--mk-fg); }

/* ----- shell layout ----- */
.mk { min-height: 100vh; display: flex; flex-direction: column; }
.mk__inner { max-width: var(--mk-max-w); margin: 0 auto; padding: 0 var(--mk-page-pad-x); width: 100%; box-sizing: border-box; }

/* ----- topbar (different from app — no blur, hard line) ----- */
.mk-tb {
  position: sticky; top: 0; z-index: 50;
  height: 56px;
  display: flex; align-items: center; gap: 24px;
  background: var(--mk-bg);
  border-bottom: 1px solid var(--mk-line);
}
.mk-tb__row { display: flex; align-items: center; gap: 24px; width: 100%; }
.mk-tb__logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  color: var(--mk-fg);
}
.mk-tb__logo:hover { text-decoration: none; }
.mk-tb__mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--mk-fg);
  color: var(--mk-bg);
  font-family: var(--ff-mono); font-weight: 700; font-size: 12px;
}
.mk-tb__nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.mk-tb__nav a {
  padding: 7px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--mk-fg-muted);
  border-radius: 0;
}
.mk-tb__nav a:hover { color: var(--mk-fg); text-decoration: none; background: var(--mk-bg-elev); }
.mk-tb__right { display: flex; align-items: center; gap: 6px; }
.mk-tb__icbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: var(--mk-fg-muted);
  border: 1px solid transparent;
  background: transparent;
}
.mk-tb__icbtn:hover { color: var(--mk-fg); background: var(--mk-bg-elev); }
.mk-tb__divider { width: 1px; height: 18px; background: var(--mk-line); margin: 0 8px; }
.mk-tb__signin {
  padding: 7px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--mk-fg);
  border-radius: 0;
}
.mk-tb__signin:hover { background: var(--mk-bg-elev); text-decoration: none; }
.mk-tb__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  background: var(--mk-fg);
  color: var(--mk-bg);
  border: 1px solid var(--mk-fg);
  border-radius: 0;
}
.mk-tb__cta:hover { background: transparent; color: var(--mk-fg); text-decoration: none; }

/* mobile burger — hidden on desktop */
.mk-tb__burger { display: none; }

/* ----- hero ----- */
.mk-hero {
  border-bottom: 1px solid var(--mk-line);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 18% -10%, var(--brand-soft), transparent 70%),
    radial-gradient(720px 420px at 95% 40%, oklch(0.71 0.16 var(--brand-h) / 0.10), transparent 70%);
}
[data-theme="light"] .mk-hero {
  background:
    radial-gradient(900px 480px at 18% -10%, var(--brand-soft), transparent 70%),
    radial-gradient(720px 420px at 95% 40%, oklch(0.55 0.22 var(--brand-h) / 0.08), transparent 70%);
}
.mk-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(0.71 0.16 var(--brand-h) / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.71 0.16 var(--brand-h) / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
.mk-hero > * { position: relative; z-index: 1; }
.mk-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.mk-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 11.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mk-fg-muted);
  border: 1px solid var(--mk-line);
  padding: 4px 10px;
  margin-bottom: 24px;
}
.mk-hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}
.mk-hero__title {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--mk-fg);
  margin: 0 0 22px;
  max-width: 680px;
  text-wrap: balance;
}
.mk-hero__title .accent {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.86em;
  letter-spacing: -0.01em;
  background: var(--brand);
  color: var(--fg-on-brand);
  padding: 0 0.18em;
  display: inline-block;
  transform: translateY(-0.05em);
  border-radius: 4px;
}
.mk-hero__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mk-fg-muted);
  margin: 0 0 32px;
  max-width: 540px;
}
.mk-hero__cta-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mk-hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--fg-on-brand);
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 2px oklch(0.5 0.18 var(--brand-h) / 0.4);
  transition: background 120ms ease;
}
.mk-hero__cta:hover {
  color: var(--fg-on-brand);
  text-decoration: none;
  background: var(--brand-hover);
}
.mk-hero__cta--ghost {
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: none;
}
.mk-hero__cta--ghost:hover {
  background: var(--bg-active);
  color: var(--fg);
  border-color: var(--border);
}

.mk-hero__meta {
  margin-top: 36px;
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--mk-fg-faint);
}
.mk-hero__meta b { color: var(--mk-fg); font-weight: 600; }

/* ----- terminal-style preview (right side) ----- */
.mk-preview {
  border: 1px solid var(--mk-line);
  background: var(--mk-bg-card);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.65;
  position: relative;
}
.mk-preview__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--mk-line);
  background: var(--mk-bg-elev);
}
.mk-preview__dot { width: 9px; height: 9px; border-radius: 99px; background: var(--mk-line-strong); }
.mk-preview__title {
  margin-left: 4px;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--mk-fg-muted);
  letter-spacing: 0.02em;
}
.mk-preview__path { margin-left: auto; font-size: 11px; color: var(--mk-fg-faint); }

.mk-preview__body { padding: 18px 20px 20px; }
.mk-preview__row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px; align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--mk-line);
}
.mk-preview__row:last-child { border-bottom: none; }
.mk-preview__row .mark { color: var(--mk-fg-faint); }
.mk-preview__row .name { color: var(--mk-fg); display: flex; align-items: center; gap: 10px; }
.mk-preview__row .vendor {
  font-family: var(--ff-sans);
  font-size: 11px;
  color: var(--mk-fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mk-preview__row .price { color: var(--mk-fg-muted); white-space: nowrap; }
.mk-preview__row .price b { color: var(--mk-fg); font-weight: 600; }
.mk-preview__row .save { color: oklch(0.74 0.16 155); }

.mk-preview__sum {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mk-line);
  display: flex; justify-content: space-between; align-items: center;
}
.mk-preview__sum-l { color: var(--mk-fg-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.mk-preview__sum-v { color: var(--mk-fg); font-size: 17px; font-weight: 600; }
.mk-preview__sum-v .strike { color: var(--mk-fg-faint); text-decoration: line-through; font-weight: 500; font-size: 13px; margin-right: 8px; }

/* ----- caret blink for terminal -----*/
.mk-caret { display: inline-block; width: 7px; height: 1em; background: var(--mk-fg); margin-left: 2px; vertical-align: -0.18em; animation: mk-blink 1.05s steps(2) infinite; }
@keyframes mk-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ----- generic section ----- */
.mk-section {
  border-bottom: 1px solid var(--mk-line);
  padding: 80px 0;
}
.mk-section--tight { padding: 56px 0; }
.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-fg-muted);
  margin-bottom: 14px;
}
.mk-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--mk-fg-muted);
}
.mk-h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mk-fg);
  margin: 0 0 14px;
  max-width: 700px;
  text-wrap: balance;
}
.mk-lede {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--mk-fg-muted);
  max-width: 600px;
  margin: 0;
}

/* ----- features grid (4 cells, hard borders, no rounding) ----- */
.mk-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--mk-line);
  margin-top: 48px;
}
.mk-feat {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--mk-line);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.mk-feat:last-child { border-right: none; }
.mk-feat__no {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--mk-fg-faint);
  letter-spacing: 0.05em;
}
.mk-feat__title { font-size: 16px; font-weight: 600; color: var(--mk-fg); margin-top: 4px; letter-spacing: -0.01em; }
.mk-feat__body { font-size: 13.5px; line-height: 1.55; color: var(--mk-fg-muted); }
.mk-feat__icon {
  width: 28px; height: 28px;
  border: 1px solid var(--mk-line-strong);
  display: grid; place-items: center;
  margin-bottom: 4px;
  color: var(--mk-fg);
}

/* ----- big stat band ----- */
.mk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--mk-line);
  margin-top: 8px;
}
.mk-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--mk-line);
}
.mk-stat:last-child { border-right: none; }
.mk-stat__num {
  font-family: var(--ff-mono);
  font-size: 32px;
  background: linear-gradient(180deg, var(--fg) 0%, var(--brand-hover) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mk-fg);
  line-height: 1;
}
.mk-stat__num .unit { font-size: 0.55em; color: var(--mk-fg-muted); margin-left: 4px; font-weight: 500; }
.mk-stat__lbl {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mk-fg-faint);
}

/* ----- two-column "how it works" ----- */
.mk-how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
.mk-steps { display: flex; flex-direction: column; }
.mk-step {
  padding: 22px 0;
  border-bottom: 1px solid var(--mk-line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
}
.mk-step:first-child { padding-top: 0; }
.mk-step:last-child { border-bottom: none; padding-bottom: 0; }
.mk-step__no {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--mk-fg-faint);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.mk-step__title { font-size: 15.5px; font-weight: 600; color: var(--mk-fg); margin-bottom: 6px; }
.mk-step__body { font-size: 13.5px; line-height: 1.55; color: var(--mk-fg-muted); }

.mk-how__panel {
  border: 1px solid var(--mk-line);
  background: var(--mk-bg-card);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.7;
}
.mk-how__panel-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--mk-line);
  background: var(--mk-bg-elev);
  color: var(--mk-fg-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mk-how__panel-body { padding: 18px 20px; }
.mk-how__panel-body .ln { display: block; }
.mk-how__panel-body .com { color: var(--mk-fg-faint); }
.mk-how__panel-body .key { color: var(--brand); }
.mk-how__panel-body .val { color: var(--mk-fg); }
.mk-how__panel-body .arr { color: var(--mk-fg-muted); }

/* ----- pricing-teaser cards ----- */
.mk-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--mk-line);
  margin-top: 48px;
}
.mk-plan {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--mk-line);
  display: flex; flex-direction: column;
  position: relative;
}
.mk-plan:last-child { border-right: none; }
.mk-plan--pop { background: var(--mk-bg-elev); }
.mk-plan__tag {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--ff-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 2px 7px;
}
.mk-plan__name { font-size: 13px; font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--mk-fg-muted); }
.mk-plan__price {
  margin-top: 12px;
  display: flex; align-items: baseline; gap: 8px;
}
.mk-plan__price .num { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; color: var(--mk-fg); font-family: var(--ff-mono); }
.mk-plan__price .per { font-size: 13px; color: var(--mk-fg-muted); }
.mk-plan__price .strike { color: var(--mk-fg-faint); text-decoration: line-through; font-family: var(--ff-mono); font-size: 14px; }
.mk-plan__list { list-style: none; padding: 0; margin: 22px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.mk-plan__list li { display: flex; gap: 9px; font-size: 13px; color: var(--mk-fg); align-items: flex-start; line-height: 1.5; }
.mk-plan__list .check { color: var(--brand); flex-shrink: 0; padding-top: 2px; }
.mk-plan__cta {
  margin-top: auto;
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  padding: 11px 16px;
  font-size: 13px; font-weight: 600;
  background: var(--mk-fg); color: var(--mk-bg);
  border: 1px solid var(--mk-fg);
}
.mk-plan__cta:hover { background: transparent; color: var(--mk-fg); text-decoration: none; }
.mk-plan--pop .mk-plan__cta { background: var(--brand); color: var(--fg-on-brand); border-color: var(--brand); }
.mk-plan--pop .mk-plan__cta:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--fg-on-brand); }

/* ----- supported services strip ----- */
.mk-vendors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--mk-line);
  border-bottom: 1px solid var(--mk-line);
  margin-top: 32px;
}
.mk-vendor {
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--mk-line);
}
.mk-vendor:last-child { border-right: none; }
.mk-vendor__name { font-size: 13px; font-weight: 600; color: var(--mk-fg); letter-spacing: -0.01em; }
.mk-vendor__price {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--mk-fg-muted);
}
.mk-vendor__price b { color: oklch(0.74 0.16 155); font-weight: 500; }

/* ----- referral teaser ----- */
.mk-refer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.mk-refer__panel {
  border: 1px solid var(--mk-line);
  background: var(--mk-bg-card);
  padding: 28px 26px;
}
.mk-refer__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--mk-line);
}
.mk-refer__row:last-child { border-bottom: none; }
.mk-refer__row .l { font-size: 13px; color: var(--mk-fg-muted); }
.mk-refer__row .v { font-family: var(--ff-mono); font-size: 14px; font-weight: 600; color: var(--mk-fg); }
.mk-refer__row .v.brand { color: var(--brand); }

/* ----- FAQ ----- */
.mk-faq { margin-top: 48px; border-top: 1px solid var(--mk-line); }
.mk-faq details {
  border-bottom: 1px solid var(--mk-line);
  padding: 0;
}
.mk-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 500; color: var(--mk-fg);
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: '+';
  font-family: var(--ff-mono);
  font-size: 22px;
  color: var(--mk-fg-muted);
  font-weight: 400;
  transition: transform 200ms ease;
}
.mk-faq details[open] summary::after { content: '−'; }
.mk-faq__a {
  padding: 0 4px 22px;
  font-size: 14px; line-height: 1.6;
  color: var(--mk-fg-muted);
  max-width: 720px;
}

/* ----- CTA band ----- */
.mk-cta-band {
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--mk-line);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 50% 100%, var(--brand-soft), transparent 70%),
    linear-gradient(180deg, transparent 0%, var(--brand-soft) 100%);
  text-align: center;
}
.mk-cta-band h3 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--mk-fg);
  margin: 0 0 16px;
  text-wrap: balance;
}
.mk-cta-band p {
  font-size: 15.5px;
  color: var(--mk-fg-muted);
  margin: 0 auto 28px;
  max-width: 560px;
}
.mk-cta-band__row { display: inline-flex; gap: 10px; }

/* ----- footer ----- */
.mk-foot {
  padding: 56px 0 36px;
  background: var(--mk-bg);
}
.mk-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--mk-line);
}
.mk-foot__brand-name { font-weight: 700; font-size: 15px; margin-top: 14px; }
.mk-foot__brand-tag { font-size: 13px; color: var(--mk-fg-muted); margin-top: 6px; line-height: 1.5; max-width: 280px; }
.mk-foot__col-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mk-fg-faint);
  margin-bottom: 14px;
}
.mk-foot__col a {
  display: block;
  font-size: 13px;
  color: var(--mk-fg-muted);
  padding: 5px 0;
}
.mk-foot__col a:hover { color: var(--mk-fg); text-decoration: none; }
.mk-foot__bottom {
  margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px; color: var(--mk-fg-faint);
}
.mk-foot__bottom .l a { color: var(--mk-fg-muted); margin-right: 18px; }
.mk-foot__bottom .l a:hover { color: var(--mk-fg); text-decoration: none; }

/* ----- mobile ----- */
@media (max-width: 920px) {
  /* marketing topbar reuses .tb from app.css; collapse nav + chips on small */
  .tb .tb__nav { display: none; }
  .tb__hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .tb .tb__chip[title="Language"],
  .tb .tb__chip[title="Theme"] { /* keep these compact */ }
  .tb a[href="Fuelio.html#signin"].tb__chip { display: none; }
  .tb .btn--primary.btn--sm { display: none; }

  .mk-hero { padding: 48px 0 56px; }
  .mk-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .mk-hero__title { font-size: 38px; }
  .mk-hero__sub { font-size: 15.5px; }

  .mk-features, .mk-stats, .mk-plans { grid-template-columns: 1fr; }
  .mk-features .mk-feat,
  .mk-stats .mk-stat,
  .mk-plans .mk-plan {
    border-right: none;
    border-bottom: 1px solid var(--mk-line);
  }
  .mk-features .mk-feat:last-child,
  .mk-stats .mk-stat:last-child,
  .mk-plans .mk-plan:last-child { border-bottom: none; }

  .mk-vendors { grid-template-columns: repeat(2, 1fr); }
  .mk-vendor:nth-child(2n) { border-right: none; }
  .mk-vendor { border-bottom: 1px solid var(--mk-line); }
  .mk-vendor:nth-last-child(-n+2) { border-bottom: none; }

  .mk-how, .mk-refer { grid-template-columns: 1fr; gap: 32px; }
  .mk-foot__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .mk-foot__top { grid-template-columns: 1fr; }
}

/* ============================================================
 * Page-shell extras for sub-pages (Plans, Referrals)
 * ============================================================ */
.mk-page-hero {
  border-bottom: 1px solid var(--mk-line);
  padding: 56px 0 40px;
}
.mk-page-hero h1 {
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 14px 0 16px;
  max-width: 800px;
  text-wrap: balance;
}
.mk-page-hero p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--mk-fg-muted);
  margin: 0;
  max-width: 640px;
}

/* segmented pill (billing/currency toggle) */
.mk-seg {
  display: inline-flex;
  border: 1px solid var(--mk-line);
  background: var(--mk-bg-elev);
}
.mk-seg button {
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--mk-fg-muted);
  border-right: 1px solid var(--mk-line);
  background: transparent;
}
.mk-seg button:last-child { border-right: none; }
.mk-seg button.is-on {
  background: var(--mk-fg);
  color: var(--mk-bg);
  font-weight: 600;
}
.mk-seg button:not(.is-on):hover { color: var(--mk-fg); }

/* tab strip */
.mk-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--mk-line);
  margin: 32px 0 0;
  overflow-x: auto;
}
.mk-tabs button {
  padding: 14px 20px;
  font-size: 13.5px; font-weight: 500;
  color: var(--mk-fg-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  background: transparent;
}
.mk-tabs button.is-on {
  color: var(--mk-fg);
  border-bottom-color: var(--mk-fg);
  font-weight: 600;
}
.mk-tabs button:hover { color: var(--mk-fg); }
.mk-tabs__count {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--mk-fg-faint);
  margin-left: 6px;
}

/* full plans grid (3 col, hard borders, no rounding) */
.mk-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--mk-line);
  margin-top: 32px;
}
.mk-pricing .mk-plan {
  border-right: 1px solid var(--mk-line);
  padding: 32px 28px 28px;
}
.mk-pricing .mk-plan:last-child { border-right: none; }
.mk-pricing--quad { grid-template-columns: repeat(4, 1fr); }
.mk-pricing--quad .mk-plan { padding: 28px 22px 24px; }

.mk-plan__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
}
.mk-plan__vendor {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mk-fg-faint);
}
.mk-plan__save {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: oklch(0.74 0.16 155);
  letter-spacing: 0.04em;
}

/* api unit pricing */
.mk-pricing--units { grid-template-columns: repeat(3, 1fr); }
.mk-pricing--units .mk-plan__price .num { font-size: 28px; }
.mk-pricing--units .mk-plan__price .per { font-size: 12px; }

/* hr divider helpers */
.mk-spacer { height: 12px; }
.mk-divider {
  height: 1px; background: var(--mk-line); margin: 24px 0;
}

/* badges  */
.mk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--mk-line);
  color: var(--mk-fg-muted);
}
.mk-badge--brand { color: var(--brand); border-color: var(--brand); }
.mk-badge--ok { color: oklch(0.74 0.16 155); border-color: oklch(0.74 0.16 155); }

/* compare table */
.mk-compare {
  margin-top: 48px;
  border: 1px solid var(--mk-line);
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
}
.mk-compare th, .mk-compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--mk-line);
  border-right: 1px solid var(--mk-line);
}
.mk-compare th:last-child, .mk-compare td:last-child { border-right: none; }
.mk-compare thead th {
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--mk-fg-faint);
  background: var(--mk-bg-elev);
  font-weight: 500;
}
.mk-compare tbody tr:last-child td { border-bottom: none; }
.mk-compare td.feat { color: var(--mk-fg); font-weight: 500; }
.mk-compare td.cell { color: var(--mk-fg); }
.mk-compare td.cell .yes { color: oklch(0.74 0.16 155); }
.mk-compare td.cell .no  { color: var(--mk-fg-faint); }

/* ----- Referrals page ----- */
.mk-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--mk-line);
  margin-top: 32px;
}
.mk-kpi {
  padding: 28px 26px;
  border-right: 1px solid var(--mk-line);
}
.mk-kpi:last-child { border-right: none; }
.mk-kpi__lbl {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--mk-fg-faint);
}
.mk-kpi__val {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mk-fg);
  line-height: 1;
}
.mk-kpi__delta {
  margin-top: 8px;
  font-size: 12px;
  color: oklch(0.74 0.16 155);
  font-family: var(--ff-mono);
}

.mk-link-box {
  margin-top: 40px;
  border: 1px solid var(--mk-line);
  display: grid;
  grid-template-columns: 1fr auto;
}
.mk-link-box input {
  background: transparent;
  border: none; outline: none;
  padding: 18px 22px;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--mk-fg);
}
.mk-link-box button {
  padding: 0 24px;
  font-size: 13px; font-weight: 600;
  background: var(--mk-fg);
  color: var(--mk-bg);
  border: none;
  border-left: 1px solid var(--mk-fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.mk-link-box button:hover { opacity: 0.9; }

.mk-share-row {
  margin-top: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
  font-size: 12px; color: var(--mk-fg-muted);
}
.mk-share-row button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--mk-line);
  font-size: 12px; color: var(--mk-fg);
  background: transparent;
}
.mk-share-row button:hover { background: var(--mk-bg-elev); }

.mk-ledger {
  margin-top: 8px;
  border: 1px solid var(--mk-line);
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.mk-ledger th, .mk-ledger td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--mk-line);
}
.mk-ledger thead th {
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--mk-fg-faint);
  font-weight: 500;
}
.mk-ledger tbody tr:last-child td { border-bottom: none; }
.mk-ledger .delta { font-family: var(--ff-mono); font-weight: 600; text-align: right; }
.mk-ledger .delta--pos { color: oklch(0.74 0.16 155); }
.mk-ledger .delta--neg { color: var(--brand); }
.mk-ledger .when { color: var(--mk-fg-faint); font-family: var(--ff-mono); font-size: 12px; white-space: nowrap; }

/* topbar active state */
.mk-tb__nav a.is-active { color: var(--mk-fg); background: var(--mk-bg-elev); }

@media (max-width: 920px) {
  .mk-pricing, .mk-pricing--quad, .mk-kpis { grid-template-columns: 1fr; }
  .mk-pricing .mk-plan, .mk-pricing--quad .mk-plan, .mk-kpi {
    border-right: none;
    border-bottom: 1px solid var(--mk-line);
  }
  .mk-pricing .mk-plan:last-child,
  .mk-pricing--quad .mk-plan:last-child,
  .mk-kpi:last-child { border-bottom: none; }
  .mk-link-box { grid-template-columns: 1fr; }
  .mk-link-box button { border-left: none; border-top: 1px solid var(--mk-fg); padding: 14px; justify-content: center; }
  .mk-compare { font-size: 12.5px; }
  .mk-compare th, .mk-compare td { padding: 12px 10px; }
}

/* mobile drawer */
.mk-drawer {
  position: fixed; inset: 0;
  background: var(--mk-bg);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 16px var(--mk-page-pad-x);
}
.mk-drawer.open { display: flex; }
.mk-drawer__top { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 16px; }
.mk-drawer__nav a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  color: var(--mk-fg);
  border-bottom: 1px solid var(--mk-line);
}
.mk-drawer__nav a:hover { text-decoration: none; }
.mk-drawer__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }

/* ============================================================
 * Plans page · indigo banner + classic 3-col pricing cards
 * (replaces .mk-pricing for the new layout)
 * ============================================================ */
.mk-plans-banner {
  position: relative;
  padding: 88px 0 96px;
  text-align: center;
  background:
    radial-gradient(1100px 380px at 50% 100%, oklch(0.71 0.16 var(--brand-h) / 0.18), transparent 70%),
    linear-gradient(160deg, oklch(0.36 0.16 var(--brand-h)) 0%, oklch(0.30 0.14 var(--brand-h)) 55%, oklch(0.26 0.06 var(--brand-h)) 100%);
  border-bottom: 1px solid var(--mk-line);
  overflow: hidden;
}
[data-theme="light"] .mk-plans-banner {
  background:
    radial-gradient(900px 320px at 50% 100%, oklch(0.71 0.16 var(--brand-h) / 0.35), transparent 70%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-hover) 55%, oklch(0.36 0.16 var(--brand-h)) 100%);
}
.mk-plans-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
}
.mk-plans-banner__inner {
  position: relative;
  max-width: var(--mk-max-w);
  margin: 0 auto;
  padding: 0 var(--mk-page-pad-x);
}
.mk-plans-banner__eye {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.85);
  margin-bottom: 18px;
}
.mk-plans-banner__eye::before,
.mk-plans-banner__eye::after {
  content: ""; width: 22px; height: 1px; background: rgba(199, 210, 254, 0.4);
}
.mk-plans-banner h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  text-wrap: balance;
}
.mk-plans-banner p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.75);
  max-width: 620px;
  margin: 0 auto 28px;
}
.mk-plans-banner__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.mk-plans-banner__controls .mk-seg {
  border: none;
  background: transparent;
}
.mk-plans-banner__controls .mk-seg button {
  color: rgba(226, 232, 240, 0.7);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
}
.mk-plans-banner__controls .mk-seg button:hover { color: #fff; background: rgba(255,255,255,0.06); }
.mk-plans-banner__controls .mk-seg button.is-on {
  background: #fff; color: oklch(0.36 0.16 var(--brand-h)); font-weight: 600;
}

/* ----- pricing-card grid (new) ----- */
.mk-pcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: -56px auto 0; /* lift cards into the banner */
  max-width: var(--mk-max-w);
  padding: 0 var(--mk-page-pad-x);
  position: relative;
  z-index: 5;
}
.mk-pcards--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-pcards--units { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mk-pcard {
  background: var(--mk-bg-card);
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.mk-pcard:hover {
  border-color: var(--mk-line-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.25);
}
.mk-pcard--pop {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 24px 60px -28px rgba(79, 70, 229, 0.5);
}
[data-theme="dark"] .mk-pcard--pop {
  box-shadow: 0 0 0 1px var(--brand), 0 24px 60px -28px rgba(129, 140, 248, 0.5);
}
.mk-pcard__pop-tag {
  position: absolute;
  top: 0; right: 24px;
  transform: translateY(-50%);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* card header — vendor + plan name centered */
.mk-pcard__hd {
  padding: 32px 28px 24px;
  text-align: center;
  border-bottom: 1px dashed var(--mk-line);
}
.mk-pcard__vendor {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-fg-faint);
}
.mk-pcard__name {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--mk-fg);
  letter-spacing: 0.04em;
  /* spaced char letterforms — like the screenshot's "基 础 套 餐 A" */
}
.mk-pcard__price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.mk-pcard__price .num {
  font-family: var(--ff-mono);
  font-size: 56px;
  font-weight: 600;
  color: var(--mk-fg);
  letter-spacing: -0.03em;
  line-height: 1;
}
.mk-pcard__price .currency {
  font-family: var(--ff-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--mk-fg);
  align-self: flex-start;
  margin-top: 8px;
}
.mk-pcard__price .per {
  font-size: 13px;
  color: var(--mk-fg-muted);
  margin-left: 4px;
}
.mk-pcard__save-line {
  margin-top: 14px;
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}
.mk-pcard__save-line .star { margin-right: 4px; }

/* card body */
.mk-pcard__body {
  padding: 22px 28px 8px;
}
.mk-pcard__lede {
  display: flex; gap: 8px;
  font-size: 13px;
  color: var(--danger);
  line-height: 1.55;
  margin-bottom: 18px;
}
.mk-pcard__lede .star { flex-shrink: 0; }
.mk-pcard__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.mk-pcard__feats li {
  display: flex; gap: 10px;
  font-size: 13.5px;
  color: var(--mk-fg);
  line-height: 1.55;
}
.mk-pcard__feats li::before {
  content: "•";
  color: var(--mk-fg);
  font-weight: 700;
  flex-shrink: 0;
}
.mk-pcard__tos {
  font-size: 12.5px;
  color: var(--mk-fg-muted);
  line-height: 1.6;
  padding: 16px 0 22px;
  border-top: 1px dashed var(--mk-line);
  margin-top: 4px;
}
.mk-pcard__cta-wrap { padding: 0 28px 28px; margin-top: auto; }
.mk-pcard__cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 140ms ease;
}
.mk-pcard__cta:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }
.mk-pcard__details {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  height: 36px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--mk-fg-muted);
  background: transparent;
}
.mk-pcard__details:hover { color: var(--mk-fg); text-decoration: none; }

@media (max-width: 1100px) {
  .mk-pcards, .mk-pcards--quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .mk-pcards, .mk-pcards--quad, .mk-pcards--units { grid-template-columns: 1fr; }
  .mk-plans-banner { padding: 64px 0 80px; }
  .mk-pcards { margin-top: -48px; }
  .mk-pcard__price .num { font-size: 44px; }
}

/* ============================================================
 * Referrals page · cinematic indigo hero with city silhouette
 * ============================================================ */
.mk-ref-hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, oklch(0.20 0.04 var(--brand-h) / 0.55) 0%, oklch(0.30 0.14 var(--brand-h) / 0.85) 60%, oklch(0.30 0.14 var(--brand-h)) 100%),
    linear-gradient(135deg, oklch(0.30 0.14 var(--brand-h)) 0%, oklch(0.36 0.16 var(--brand-h)) 50%, oklch(0.26 0.06 var(--brand-h)) 100%);
  border-bottom: 1px solid var(--mk-line);
}
[data-theme="light"] .mk-ref-hero {
  background:
    linear-gradient(180deg, oklch(0.20 0.04 var(--brand-h) / 0.45) 0%, oklch(0.36 0.16 var(--brand-h) / 0.85) 60%, oklch(0.36 0.16 var(--brand-h)) 100%),
    linear-gradient(135deg, oklch(0.36 0.16 var(--brand-h)) 0%, var(--brand-hover) 50%, oklch(0.40 0.16 var(--brand-h)) 100%);
}

/* layered gradients faking a low-angle skyscraper composition  */
.mk-ref-hero__city {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.mk-ref-hero__city svg { width: 100%; height: 100%; display: block; }

.mk-ref-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 60%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 60%, black 25%, transparent 80%);
  pointer-events: none;
}
.mk-ref-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 80px var(--mk-page-pad-x);
}
.mk-ref-hero__eye {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.85);
  margin-bottom: 22px;
}
.mk-ref-hero__eye .dot {
  width: 6px; height: 6px; border-radius: 999px; background: oklch(0.85 0.10 var(--brand-h));
  box-shadow: 0 0 12px oklch(0.85 0.10 var(--brand-h) / 0.7);
}
.mk-ref-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 22px;
  line-height: 1.1;
  text-wrap: balance;
}
.mk-ref-hero p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.78);
  max-width: 640px;
  margin: 0 auto 32px;
}
.mk-ref-hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, rgba(165, 180, 252, 0.95) 0%, rgba(99, 102, 241, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 20px -4px rgba(99, 102, 241, 0.5);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.mk-ref-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 26px -4px rgba(99, 102, 241, 0.6);
  color: #fff; text-decoration: none;
}
.mk-ref-hero__cta--ghost {
  background: rgba(255,255,255,0.04);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.18);
}
.mk-ref-hero__cta--ghost:hover { background: rgba(255,255,255,0.08); box-shadow: none; }

.mk-ref-hero__cta-row {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* stats panel sits below CTA in cinematic hero */
.mk-ref-hero__stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  overflow: hidden;
}
.mk-ref-hero__stat {
  padding: 22px 18px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.mk-ref-hero__stat:last-child { border-right: none; }
.mk-ref-hero__stat-lbl {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.7);
  margin-bottom: 8px;
}
.mk-ref-hero__stat-val {
  font-family: var(--ff-display, var(--ff-sans));
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.mk-ref-hero__stat-delta {
  margin-top: 8px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: rgba(165, 180, 252, 0.85);
}
@media (max-width: 720px) {
  .mk-ref-hero__stats { grid-template-columns: 1fr; }
  .mk-ref-hero__stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mk-ref-hero__stat:last-child { border-bottom: none; }
}

/* ledger row markers */
.mk-ledger tr td.delta--pos { color: var(--success); font-family: var(--ff-mono); font-weight: 600; }
.mk-ledger tr td.delta--neg { color: var(--mk-fg-faint); font-family: var(--ff-mono); font-weight: 600; }

/* ============================================================
 * Referrals page · v2 · "Image 2" tinted info banner + ledger
 * Soft, dashboard-feel; hero, info card, table, footer.
 * ============================================================ */
.mk-ref2-hero {
  border-bottom: 1px solid var(--mk-line);
  padding: 56px 0 36px;
  background:
    radial-gradient(900px 320px at 50% -40%, var(--brand-soft), transparent 70%);
}
.mk-ref2-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 12px 0 14px;
  max-width: 780px;
  text-wrap: balance;
}
.mk-ref2-hero p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--mk-fg-muted);
  max-width: 640px;
  margin: 0;
}

/* tiny KPI row inline under the hero - subtle, non-card-y */
.mk-ref2-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: 28px;
}
.mk-ref2-stat__lbl {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-fg-faint);
}
.mk-ref2-stat__val {
  margin-top: 6px;
  font-family: var(--ff-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--mk-fg);
  letter-spacing: -0.02em;
}
.mk-ref2-stat__delta {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--success);
  font-family: var(--ff-mono);
}

/* ----- the info banner — the centerpiece, like Image 2 ----- */
.mk-ref2-info {
  margin-top: 48px;
  padding: 26px 28px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-ring);
  position: relative;
}
[data-theme="light"] .mk-ref2-info {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.22);
}
.mk-ref2-info__lede {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mk-fg);
  margin: 0;
}
.mk-ref2-info__lede em {
  color: var(--brand);
  font-style: normal;
  font-weight: 600;
}
.mk-ref2-info__lede strong {
  color: var(--brand);
  font-weight: 600;
}
.mk-ref2-info__link {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--mk-bg-card);
  border: 1px solid var(--mk-line);
}
.mk-ref2-info__link-lbl {
  font-size: 13px;
  color: var(--mk-fg-muted);
  white-space: nowrap;
}
.mk-ref2-info__link-url {
  font-family: var(--ff-mono);
  font-size: 13.5px;
  color: var(--brand);
  background: transparent;
  border: none; outline: none;
  width: 100%;
  text-overflow: ellipsis; overflow: hidden;
}
.mk-ref2-info__link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px; font-weight: 500;
  background: transparent;
  color: var(--mk-fg);
  border: 1px solid var(--mk-line);
  border-radius: 6px;
  white-space: nowrap;
}
.mk-ref2-info__link-btn:hover { background: var(--mk-bg-elev); border-color: var(--mk-line-strong); }
.mk-ref2-info__link-btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.mk-ref2-info__link-btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* ----- ledger table card ----- */
.mk-ref2-ledger-card {
  margin-top: 32px;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background: var(--mk-bg-card);
  overflow: hidden;
}
.mk-ref2-ledger-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--mk-line);
}
.mk-ref2-ledger-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mk-fg);
}
.mk-ref2-ledger-card .mk-seg { background: var(--mk-bg-elev); }
.mk-ref2-ledger-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.mk-ref2-ledger-card thead th {
  padding: 12px 22px;
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-fg-faint);
  font-weight: 500;
  background: var(--mk-bg-elev);
  border-bottom: 1px solid var(--mk-line);
}
.mk-ref2-ledger-card tbody td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--mk-line);
  color: var(--mk-fg);
}
.mk-ref2-ledger-card tbody tr:last-child td { border-bottom: none; }
.mk-ref2-ledger-card tbody tr:hover td { background: var(--mk-bg-elev); }
.mk-ref2-ledger-card .delta { text-align: right; font-family: var(--ff-mono); font-weight: 600; }
.mk-ref2-ledger-card .delta--pos { color: var(--success); }
.mk-ref2-ledger-card .delta--neg { color: var(--mk-fg-faint); }
.mk-ref2-ledger-card .when { color: var(--mk-fg-muted); font-family: var(--ff-mono); font-size: 12.5px; white-space: nowrap; }
.mk-ref2-ledger-card .marker { font-family: var(--ff-mono); font-weight: 700; font-size: 14px; }
.mk-ref2-ledger-card .marker--pos { color: var(--success); }
.mk-ref2-ledger-card .marker--neg { color: var(--mk-fg-faint); }

.mk-ref2-pager {
  display: flex; gap: 6px; padding: 14px 22px;
  border-top: 1px solid var(--mk-line);
  background: var(--mk-bg-elev);
}
.mk-ref2-pager button {
  min-width: 28px; height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12.5px;
  color: var(--mk-fg-muted);
  font-family: var(--ff-mono);
  border-radius: 4px;
}
.mk-ref2-pager button:hover { color: var(--mk-fg); background: var(--mk-bg-card); }
.mk-ref2-pager button.is-on { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

.mk-ref2-tos {
  margin-top: 18px;
  font-size: 12px;
  color: var(--mk-fg-faint);
  max-width: 720px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .mk-ref2-info__link { grid-template-columns: 1fr; gap: 10px; }
  .mk-ref2-info__link-lbl { display: none; }
  .mk-ref2-stats { gap: 28px; }
}
