/* ═══════════════════════════════════════════════════════════════════════════
   MARKETING SURFACE (SaaS Phase 7.1) — the public single-page selling portal.

   Loaded ONLY by app/(marketing)/layout.tsx (React hoists the <link> with a
   precedence), so it never weighs on the in-app pages. Consumes the same design
   TOKENS as the app (style.css :root) — no raw brand hex, so a token change
   restyles the marketing site too. Motion is CSS-only and respects
   prefers-reduced-motion; scroll reveals are progressive (visible without support).
   ═══════════════════════════════════════════════════════════════════════════ */

/* The app shell makes <body> a fixed overflow:hidden flex ROW. For the marketing
   pages we want a normal scrolling document (so anchor links + smooth scroll just
   work), so re-open the body flow whenever the marketing wrapper is present. */
body:has(.mkt) { display: block; height: auto; overflow: auto; }
html:has(.mkt) { scroll-behavior: smooth; }

.mkt {
  /* Fonts self-hosted by next/font (marketing layout): Archivo body + Fraunces display.
     Fall back to the app's system stack if the variables aren't present. */
  --font-display: var(--mkt-display), Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--mkt-body), var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings + big figures wear the display serif; everything else stays in Archivo.
   Fraunces is high-contrast, so it reads best a touch lighter than the sans it replaces
   (the per-heading weights are softened just below). */
.mkt-h1, .mkt-h2, .mkt-h3, .mkt-logo, .mkt-story-quote,
.mkt-price-amount, .mkt-story-stat .n, .mkt-quote-metric-n {
  font-family: var(--font-display);
}
/* The italic accent phrase in a heading (sellerqi-style emphasis). Fraunces ships a
   true italic, so this reads as intentional, not a synthetic slant. */
.mkt-em { font-style: italic; color: var(--accent); font-weight: inherit; }
.mkt-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mkt [id] { scroll-margin-top: 84px; } /* clear the sticky header on anchor jumps */

/* ── Header ── */
.mkt-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--border);
}
.mkt-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mkt-logo { display: flex; align-items: center; gap: 9px; font-weight: 640; font-size: 19px; letter-spacing: 0.2px; color: var(--text); text-decoration: none; }
.mkt-logo .logo-icon { color: var(--accent); font-size: 22px; }
.mkt-nav { display: flex; align-items: center; gap: 4px; }
.mkt-nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.mkt-nav a:hover { color: var(--text); background: var(--surface-hover); }
.mkt-nav-cta { display: flex; align-items: center; gap: 8px; }

/* ── Buttons ── */
.mkt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}
.mkt-btn:active { transform: translateY(1px); }
.mkt-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px var(--accent-glow); }
.mkt-btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.mkt-btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.mkt-btn-ghost:hover { background: var(--surface-hover); }
.mkt-btn-lg { padding: 13px 26px; font-size: 15px; }

/* ── Generic section / type ── */
.mkt-main { flex: 1; }
.mkt-section { padding: 76px 0; }
.mkt-section-tight { padding: 40px 0; }
.mkt-eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.mkt-h1 { font-size: 52px; line-height: 1.05; font-weight: 620; letter-spacing: -0.5px; margin: 0 0 18px; }
.mkt-h2 { font-size: 33px; line-height: 1.16; font-weight: 600; letter-spacing: -0.2px; margin: 0 0 12px; }
.mkt-h3 { font-size: 22px; line-height: 1.2; font-weight: 640; margin: 0 0 10px; }
.mkt-lede { font-size: 18px; color: var(--text-dim); margin: 0 0 28px; }
.mkt-center { text-align: center; }
.mkt-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.mkt-block-head { margin-bottom: 44px; }

/* ── Hero ── */
.mkt-hero { position: relative; padding: 104px 0 72px; text-align: center; overflow: hidden; }
.mkt-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.mkt-hero-note { font-size: 13px; color: var(--text-muted); margin-top: 18px; }

/* Decorative animated blobs behind the hero */
.mkt-blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.5; z-index: 0; pointer-events: none; }
.mkt-blob-1 { width: 420px; height: 420px; background: var(--accent-glow); top: -120px; left: -80px; animation: mk-float 14s ease-in-out infinite; }
.mkt-blob-2 { width: 360px; height: 360px; background: var(--accent-dim); top: -60px; right: -60px; animation: mk-float 18s ease-in-out infinite reverse; }
.mkt-hero > .mkt-container { position: relative; z-index: 1; }

/* Big product preview under the hero copy */
.mkt-hero-preview { margin-top: 44px; }

/* ── Product mockup ("screenshot") frame ── */
.mk-frame {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12), var(--shadow); overflow: hidden; max-width: 900px; margin: 0 auto;
}
.mk-frame-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.mk-frame-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mk-frame-title { margin-left: 10px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.mk-frame-body { display: block; width: 100%; }
.mk-frame-body svg { display: block; width: 100%; height: auto; }
.mk-frame-sm { max-width: 100%; }

/* SVG mockup element theming (fills via tokens — animated where marked) */
.mk-canvas { fill: var(--surface); }
.mk-panel { fill: var(--surface2); }
.mk-line-soft { stroke: var(--border); stroke-width: 1; }
.mk-ink { fill: var(--text); }
.mk-ink-dim { fill: var(--text-muted); }
.mk-accent { fill: var(--accent); }
.mk-accent-soft { fill: var(--accent-dim); }
.mk-good { fill: var(--success); }
.mk-warn { fill: var(--warning); }
.mk-bar { fill: var(--accent); transform-origin: bottom; animation: mk-grow 1.1s cubic-bezier(.2,.7,.3,1) both; }
.mk-bar-soft { fill: var(--accent-dim); transform-origin: bottom; animation: mk-grow 1.1s cubic-bezier(.2,.7,.3,1) both; }
.mk-trend { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 520; stroke-dashoffset: 520; animation: mk-draw 1.8s ease-out .3s forwards; }
.mk-dot-pulse { fill: var(--accent); animation: mk-pulse 2.2s ease-in-out infinite; }
.mk-ring { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 250; stroke-dashoffset: 250; animation: mk-draw 1.6s ease-out .2s forwards; }
.mk-ring-track { fill: none; stroke: var(--surface2); stroke-width: 10; }

/* ── Feature overview cards ── */
.mkt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* The cards are anchors (jump to their deep-dive section) — kill the default link
   underline + link colour so the text reads like body copy, not a hyperlink. */
.mkt-tile { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.mkt-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,24,40,0.10), var(--shadow); border-color: var(--accent); }
.mkt-tile-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.mkt-tile h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--text); text-decoration: none; }
.mkt-tile p { font-size: 14px; color: var(--text-dim); margin: 0; text-decoration: none; }

/* ── Feature DEEP-DIVE rows (alternating text / visual) ── */
.mkt-feature { padding: 64px 0; border-top: 1px solid var(--border); }
.mkt-feature:first-of-type { border-top: none; }
.mkt-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mkt-feature-row.reverse .mkt-feature-visual { order: -1; }
.mkt-feature-copy h2 { font-size: 28px; }
.mkt-feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.mkt-feature-list li { font-size: 15px; color: var(--text-dim); display: flex; gap: 10px; align-items: flex-start; }
.mkt-feature-list li::before { content: "✓"; color: var(--success); font-weight: 700; margin-top: 1px; }
.mkt-feature-visual { min-width: 0; }

/* ── Steps ── */
.mkt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mkt-step { padding: 20px; }
.mkt-step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.mkt-step h3 { font-size: 16px; margin: 0 0 6px; }
.mkt-step p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ── CTA band ── */
.mkt-cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }

/* ── Pricing ── */
.mkt-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.mkt-price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.mkt-price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px var(--accent-glow); transform: translateY(-4px); }
.mkt-price-badge { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); background: var(--accent-dim); padding: 3px 8px; border-radius: 999px; margin-bottom: 10px; }
.mkt-price-name { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.mkt-price-amount { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.mkt-price-amount span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.mkt-price-sub { font-size: 13px; color: var(--text-dim); margin: 6px 0 18px; min-height: 34px; }
.mkt-price-features { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.mkt-price-features li { font-size: 13.5px; color: var(--text-dim); display: flex; gap: 8px; align-items: flex-start; }
.mkt-price-features li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ── FAQ (native <details>) ── */
.mkt-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.mkt-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 18px; }
.mkt-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary::after { content: "+"; color: var(--text-muted); font-size: 20px; font-weight: 400; }
.mkt-faq details[open] summary::after { content: "−"; }
.mkt-faq details[open] summary { color: var(--accent); }
.mkt-faq-body { font-size: 14px; color: var(--text-dim); padding: 0 0 16px; }

/* ── Contact ── */
.mkt-contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: stretch; }
/* Form is a card now (equal visual weight to the info panel). */
.mkt-contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.mkt-contact-form h3 { font-size: 17px; font-weight: 700; margin: 0 0 18px; }
.mkt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mkt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mkt-field label { font-size: 13px; font-weight: 600; }
.mkt-field input, .mkt-field textarea, .mkt-field select { font: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); width: 100%; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.mkt-field textarea { resize: vertical; min-height: 128px; }
.mkt-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: right 16px center, right 11px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.mkt-field input:focus, .mkt-field textarea:focus, .mkt-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--surface); }
.mkt-contact-form .mkt-btn { width: 100%; margin-top: 4px; }

/* Vibrant accent info panel — the colour + polish the section was missing. */
.mkt-contact-panel {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px; color: #fff;
  display: flex; flex-direction: column;
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 60%, black));
  box-shadow: 0 16px 40px var(--accent-glow);
}
.mkt-contact-panel h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.mkt-contact-panel-sub { font-size: 14px; line-height: 1.5; margin: 0 0 24px; color: rgba(255, 255, 255, 0.82); }
.mkt-contact-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.mkt-contact-methods li { display: flex; gap: 13px; align-items: flex-start; }
.mkt-contact-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mkt-contact-methods .m-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: rgba(255, 255, 255, 0.68); font-weight: 700; margin-bottom: 2px; }
.mkt-contact-methods .m-value { font-size: 14px; color: #fff; }
.mkt-contact-methods a { font-size: 14.5px; color: #fff; text-decoration: none; font-weight: 500; }
.mkt-contact-methods a:hover { text-decoration: underline; }
.mkt-contact-panel-orb { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); bottom: -96px; right: -70px; z-index: 0; }

/* ── Legal / long-form prose ── */
.mkt-prose { max-width: 780px; margin: 0 auto; }
.mkt-prose h2 { font-size: 20px; margin: 32px 0 10px; }
.mkt-prose h3 { font-size: 16px; margin: 22px 0 8px; }
.mkt-prose p, .mkt-prose li { font-size: 14.5px; color: var(--text-dim); }
.mkt-prose ul { padding-left: 20px; }
.mkt-prose li { margin: 5px 0; }
.mkt-prose a { color: var(--accent); }
.mkt-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.mkt-note { background: var(--accent-dim); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }

/* ── Footer ── */
.mkt-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; margin-top: 40px; }
.mkt-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mkt-footer-brand { max-width: 300px; }
.mkt-footer-brand p { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.mkt-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.mkt-footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 0 0 12px; }
.mkt-footer-col a { display: block; font-size: 14px; color: var(--text-dim); text-decoration: none; margin-bottom: 8px; }
.mkt-footer-col a:hover { color: var(--text); }
.mkt-footer-legal { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Trusted-by logo marquee ── */
.mkt-trust { padding: 44px 0 12px; text-align: center; }
.mkt-trust-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 24px; }
.mkt-trust-label b { color: var(--text); }
.mkt-marquee { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.mkt-marquee-track { display: flex; width: max-content; gap: 56px; animation: mk-marquee 36s linear infinite; }
.mkt-marquee:hover .mkt-marquee-track { animation-play-state: paused; }
.mkt-logo-chip { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 700; font-size: 18px; letter-spacing: -0.2px; opacity: 0.72; white-space: nowrap; transition: opacity .2s ease, color .2s ease; }
.mkt-logo-chip:hover { opacity: 1; color: var(--text); }
.mkt-logo-chip svg { width: 26px; height: 26px; flex-shrink: 0; animation: mk-spin 22s linear infinite; transform-origin: center; }

/* ── Founder / credibility band ── */
.mkt-story-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); text-align: center; }
.mkt-story-card .mkt-blob { opacity: 0.4; }
.mkt-story-quote { font-size: 25px; line-height: 1.4; font-weight: 700; letter-spacing: -0.3px; max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.mkt-story-quote .hl { color: var(--accent); }
.mkt-story-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-top: 32px; position: relative; z-index: 1; }
.mkt-story-stat .n { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.mkt-story-stat .l { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* ── Testimonials ── */
.mkt-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mkt-quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.mkt-quote-stars { color: var(--warning); font-size: 15px; letter-spacing: 3px; margin-bottom: 12px; }
.mkt-quote-text { font-size: 15px; color: var(--text); line-height: 1.6; margin: 0 0 20px; flex: 1; }
.mkt-quote-author { display: flex; align-items: center; gap: 12px; }
.mkt-quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.mkt-quote-name { font-weight: 700; font-size: 14px; }
.mkt-quote-role { font-size: 13px; color: var(--text-muted); }

/* ── How it works — stepped cards with a connecting rail ── */
.mkt-steps { position: relative; }
.mkt-step { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.mkt-step-num { width: 42px; height: 42px; font-family: var(--font-display); font-size: 19px; font-weight: 640; margin-bottom: 14px; }
.mkt-step h3 { font-family: var(--font-display); }
@media (min-width: 901px) {
  /* A faint rail through the number circles, revealed in the gaps between cards. */
  .mkt-steps::before { content: ""; position: absolute; z-index: 0; top: 49px; left: 16%; right: 16%; height: 2px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim)); }
}

/* ── Before / after ── */
.mkt-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 960px; margin: 0 auto; }
.mkt-ba-col { border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; }
.mkt-ba-before { background: var(--surface); }
.mkt-ba-after { background: linear-gradient(162deg, var(--accent-dim), var(--surface) 70%); border-color: var(--accent); box-shadow: 0 12px 30px var(--accent-glow); }
.mkt-ba-head { margin-bottom: 18px; }
.mkt-ba-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.mkt-ba-before .mkt-ba-tag { color: var(--text-muted); background: var(--surface2); }
.mkt-ba-after .mkt-ba-tag { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.mkt-ba-head h3 { font-size: 19px; margin: 0; }
.mkt-ba-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.mkt-ba-col li { font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.mkt-ba-before li { color: var(--text-dim); }
.mkt-ba-before li::before { content: "✕"; color: var(--text-muted); font-weight: 700; margin-top: 1px; }
.mkt-ba-after li { color: var(--text); }
.mkt-ba-after li::before { content: "✓"; color: var(--success); font-weight: 700; margin-top: 1px; }

/* ── Testimonial "result" metric (replaces the star row) ── */
.mkt-quote-metric { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mkt-quote-metric-n { display: block; font-size: 27px; color: var(--accent); line-height: 1.1; }
.mkt-quote-metric-l { display: block; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 5px; }

/* ── "See what's hiding" demo band ── */
.mkt-demo-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); }
.mkt-demo-band .mkt-blob { opacity: 0.32; }
.mkt-demo-copy { position: relative; z-index: 1; }
.mkt-demo-copy .mkt-lede { margin-bottom: 22px; }
.mkt-demo-visual { position: relative; z-index: 1; }

/* ── Use-case / comparison / case-study pages ── */
.mkt-stat-row { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.mkt-stat .n { font-family: var(--font-display); font-size: 34px; font-weight: 640; color: var(--accent); letter-spacing: -0.5px; }
.mkt-stat .l { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.mkt-compare-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; }
.mkt-compare { width: 100%; min-width: 520px; border: 1px solid var(--border); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.mkt-compare th, .mkt-compare td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.mkt-compare thead th { background: var(--surface2); font-weight: 700; font-size: 13px; }
.mkt-compare tbody th { font-weight: 500; color: var(--text-dim); }
.mkt-compare .col-us { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-weight: 600; }
.mkt-compare thead .col-us { background: color-mix(in srgb, var(--accent) 16%, var(--surface2)); color: var(--accent); }
.mkt-compare tbody tr:last-child th, .mkt-compare tbody tr:last-child td { border-bottom: none; }
.mkt-compare .yes { color: var(--success); font-weight: 700; }
.mkt-compare .no { color: var(--text-muted); }

.mkt-case { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mkt-case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.mkt-case-card .mkt-eyebrow { margin-bottom: 8px; }
.mkt-case-card h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 12px; }
.mkt-case-metrics { display: flex; gap: 32px; flex-wrap: wrap; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.mkt-case-metrics .n { font-family: var(--font-display); font-size: 26px; color: var(--accent); line-height: 1; }
.mkt-case-metrics .l { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.mkt-case-quote { font-size: 14px; color: var(--text-dim); font-style: italic; }

/* ── Interactive demo tour (/demo) ── */
.mkt-demo-tour { max-width: 980px; margin: 0 auto; }
.mkt-demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.mkt-demo-tab { font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.mkt-demo-tab:hover { border-color: var(--accent); color: var(--text); }
.mkt-demo-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mkt-demo-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.mkt-demo-panel-copy .mkt-eyebrow { margin-bottom: 8px; }
.mkt-demo-panel-copy h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 12px; }
.mkt-demo-panel-copy p { color: var(--text-dim); font-size: 15px; margin: 0 0 18px; }
.mkt-demo-banner { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 20px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; margin: 0 auto 32px; max-width: 720px; font-size: 14px; color: var(--text-dim); }
.mkt-demo-banner b { color: var(--text); }

/* ── Layout modifiers (replace one-off inline styles — design tokens only) ── */
.mkt-section.mkt-flush-top { padding-top: 8px; }
.mkt-hero.mkt-flush-bottom { padding-bottom: 32px; }
.mkt-hero-actions.mkt-start { justify-content: flex-start; }
.mkt-feature-copy .mkt-lede { margin-bottom: 0; }
.mkt-cases-note { margin-bottom: 32px; }
.mkt-case-body { font-size: 14px; color: var(--text-dim); margin: 12px 0 0; }
.mk-ring-value { font-size: 26px; font-weight: 800; }
.mk-ring-label { font-size: 12px; }

/* ── Keyframes ── */
@keyframes mk-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, 26px) scale(1.06); } }
@keyframes mk-grow { from { transform: scaleY(0.06); } to { transform: scaleY(1); } }
@keyframes mk-draw { to { stroke-dashoffset: 0; } }
@keyframes mk-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes mk-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mk-marquee { to { transform: translateX(-50%); } }
@keyframes mk-spin { to { transform: rotate(360deg); } }

/* Scroll-reveal — progressive: only applied where scroll-driven animations exist,
   so unsupported browsers just show the content (never left hidden). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mkt-reveal { animation: mk-rise linear both; animation-timeline: view(); animation-range: entry 2% cover 22%; }
  }
}

/* Respect reduced motion everywhere. */
@media (prefers-reduced-motion: reduce) {
  .mkt-blob, .mk-bar, .mk-bar-soft, .mk-trend, .mk-dot-pulse, .mk-ring,
  .mkt-marquee-track, .mkt-logo-chip svg { animation: none !important; }
  .mk-trend, .mk-ring { stroke-dashoffset: 0; }
  html:has(.mkt) { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mkt-grid, .mkt-steps, .mkt-price-grid, .mkt-contact-grid, .mkt-field-row, .mkt-testimonials,
  .mkt-ba, .mkt-demo-band, .mkt-case, .mkt-demo-panel { grid-template-columns: 1fr; }
  .mkt-demo-band { padding: 32px 24px; }
  .mkt-demo-visual { order: -1; }
  .mkt-story-card { padding: 32px 24px; } .mkt-story-quote { font-size: 21px; }
  .mkt-feature-row { grid-template-columns: 1fr; gap: 28px; }
  .mkt-feature-row.reverse .mkt-feature-visual { order: 0; }
  .mkt-h1 { font-size: 36px; }
  .mkt-h2 { font-size: 26px; }
  .mkt-nav { display: none; }
  .mkt-section { padding: 52px 0; }
  .mkt-hero { padding: 60px 0 44px; }
  .mkt-price-card.featured { transform: none; }
}
