/* ============================================================
   Mizup — Public marketing design system
   Loaded ONLY on public marketing pages (/, /product, /pricing,
   /solutions, /features/*, /request-demo) alongside app.css and
   landing.css. Purely additive — never redefines or overrides
   any selector used by the internal dashboard (.btn, .form-group,
   .topbar, etc). Reuses the CSS variables already declared in
   app.css (--miz-red, --ink, --paper, --grey, --hairline, --blue,
   --shadow*) rather than redefining them.
   ============================================================ */

:root {
  --mkt-amber: #C9862E;
  --mkt-green: #1E7B3B;
  --mkt-max: 1180px;
}

.mkt-container { max-width: var(--mkt-max); margin: 0 auto; padding-left: 6vw; padding-right: 6vw; }

/* ---------- Mega nav ---------- */
.mkt-nav {
  position: sticky; top: 0; z-index: 100; background: rgba(247,247,245,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mkt-nav.is-scrolled { background: rgba(247,247,245,.97); border-bottom-color: var(--hairline); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.mkt-nav-row {
  max-width: var(--mkt-max); margin: 0 auto; padding: 14px 6vw; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mkt-nav-left { display: flex; align-items: center; gap: 36px; min-width: 0; }
.mkt-logo { display: flex; align-items: center; flex-shrink: 0; }
.mkt-logo img { height: 40px; width: auto; display: block; }
.mkt-nav-links { display: flex; align-items: center; gap: 4px; }
.mkt-nav-item { position: relative; }
.mkt-nav-link {
  display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 14.5px; font-weight: 500;
  padding: 9px 12px; border-radius: 7px; transition: background .12s ease, color .12s ease;
}
.mkt-nav-link:hover, .mkt-nav-link:focus-visible { background: rgba(23,23,26,.05); text-decoration: none; }
.mkt-nav-link.is-active { color: var(--miz-red); }
.mkt-nav-link svg { transition: transform .15s ease; flex-shrink: 0; }
.mkt-nav-item:hover .mkt-nav-link svg, .mkt-nav-item:focus-within .mkt-nav-link svg { transform: rotate(180deg); }

.mkt-nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 620px; max-width: 86vw; background: var(--white); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--shadow-modal); padding: 22px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 4px;
}
.mkt-nav-item:hover .mkt-nav-dropdown, .mkt-nav-item:focus-within .mkt-nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mkt-nav-dropdown-col { padding: 6px 12px; }
.mkt-nav-dropdown-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin: 0 0 8px 8px; }
.mkt-nav-dropdown a.mkt-dd-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 9px 8px; border-radius: 9px; color: var(--ink); transition: background .12s ease;
}
.mkt-nav-dropdown a.mkt-dd-item:hover { background: var(--paper); text-decoration: none; }
.mkt-dd-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--paper); color: var(--miz-red); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.mkt-dd-item strong { display: block; font-size: 13.8px; font-weight: 600; }
.mkt-dd-item span { display: block; font-size: 12px; color: var(--grey); margin-top: 1px; line-height: 1.4; }
.mkt-nav-dropdown-feature {
  grid-column: 1 / -1; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--hairline-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-left: 8px; padding-right: 8px;
}
.mkt-nav-dropdown-feature p { margin: 0; font-size: 13px; color: var(--grey); }
.mkt-nav-dropdown-feature a { font-size: 13px; font-weight: 600; white-space: nowrap; }

.mkt-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mkt-nav-cta-secondary { color: var(--ink); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 8px; }
.mkt-nav-cta-secondary:hover { background: rgba(23,23,26,.05); text-decoration: none; }

.mkt-nav-burger { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--hairline); background: var(--white); }
.mkt-nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: background .15s ease; }
.mkt-nav-burger span::before, .mkt-nav-burger span::after { content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
.mkt-nav-burger span::before { top: -5px; }
.mkt-nav-burger span::after { top: 5px; }
.mkt-nav-burger.is-open span { background: transparent; }
.mkt-nav-burger.is-open span::before { top: 0; transform: rotate(45deg); }
.mkt-nav-burger.is-open span::after { top: 0; transform: rotate(-45deg); }

.mkt-mobile-panel {
  position: fixed; inset: 0; top: 70px; z-index: 90; background: var(--paper); transform: translateY(-8px);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; overflow-y: auto; padding: 10px 6vw 32px;
}
.mkt-mobile-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mkt-mobile-group { border-bottom: 1px solid var(--hairline); padding: 14px 0; }
.mkt-mobile-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; cursor: pointer; padding: 6px 2px; }
.mkt-mobile-group summary::-webkit-details-marker { display: none; }
.mkt-mobile-group summary::after { content: '+'; color: var(--miz-red); font-size: 20px; }
.mkt-mobile-group[open] summary::after { content: '\2212'; }
.mkt-mobile-sub { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px 4px; }
.mkt-mobile-sub a { padding: 11px 8px; border-radius: 8px; color: var(--ink); font-size: 14.5px; }
.mkt-mobile-sub a:hover { background: var(--white); text-decoration: none; }
.mkt-mobile-link { display: block; padding: 16px 2px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.mkt-mobile-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.mkt-mobile-ctas .lp-btn { width: 100%; justify-content: center; }

@media (min-width: 1000px) {
  .mkt-nav-burger, .mkt-mobile-panel { display: none; }
}
@media (max-width: 999px) {
  .mkt-nav-links, .mkt-nav-cta-secondary { display: none; }
}

/* ---------- Generic page hero (product / pricing / solutions / feature pages) ---------- */
.mkt-page-hero { background: var(--ink); color: var(--paper); padding: 56px 6vw 68px; position: relative; overflow: hidden; }
.mkt-page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(640px 380px at 15% -10%, rgba(230,61,46,.26), transparent 60%),
              radial-gradient(560px 420px at 90% 0%, rgba(46,111,230,.2), transparent 60%);
}
.mkt-breadcrumb { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #A9A9B0; margin-bottom: 22px; }
.mkt-breadcrumb a { color: #A9A9B0; }
.mkt-breadcrumb a:hover { color: #fff; }
.mkt-page-hero-inner { max-width: 780px; position: relative; z-index: 1; }
.mkt-page-hero-inner.mkt-wide { max-width: 900px; }
.mkt-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); padding: 6px 13px; border-radius: 999px; font-size: 12.5px; color: #E4E4E7; margin-bottom: 18px; }
.mkt-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--miz-red); flex-shrink: 0; }
.mkt-page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.14; margin: 0 0 16px; letter-spacing: -0.015em; color: #fff; max-width: 18ch; }
.mkt-page-hero p.mkt-lead { font-size: 17px; color: #C6C6CC; max-width: 54ch; line-height: 1.62; margin: 0 0 28px; }
.mkt-page-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Section rhythm reused from lp-section, plus a few extras ---------- */
.mkt-section-alt { background: var(--paper); }
.mkt-eyebrow-light { display: inline-flex; align-items: center; gap: 8px; background: rgba(230,61,46,.08); color: var(--miz-red); padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }

/* ---------- Bento grid ---------- */
.mkt-bento { max-width: var(--mkt-max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 16px; }
.mkt-bento-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 18px; padding: 30px; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mkt-bento-card:hover { border-color: var(--grey-light); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.mkt-bento-card.mkt-span-2 { grid-column: span 1; }
.mkt-bento-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex-shrink: 0; }
.mkt-bento-card h3 { font-size: 18px; margin: 0 0 8px; }
.mkt-bento-card p { font-size: 14.5px; color: var(--grey); line-height: 1.6; margin: 0; }
.mkt-bento-card .mkt-bento-link { margin-top: 16px; font-size: 13.5px; font-weight: 600; }

@media (min-width: 720px) { .mkt-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .mkt-bento { grid-template-columns: repeat(3, 1fr); }
  .mkt-bento-card.mkt-span-2 { grid-column: span 2; }
}

/* ---------- Deep-dive alternating rows (product page) ---------- */
.mkt-deepdive { max-width: var(--mkt-max); margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.mkt-deepdive-row {
  display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; padding: 56px 0; border-top: 1px solid var(--hairline);
}
.mkt-deepdive-row:first-child { border-top: none; }
.mkt-deepdive-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.mkt-deepdive-copy h2 { font-size: clamp(23px, 2.8vw, 30px); margin: 0 0 14px; letter-spacing: -0.01em; }
.mkt-deepdive-copy p { color: var(--grey); font-size: 15.5px; line-height: 1.65; max-width: 46ch; margin: 0 0 18px; }
.mkt-deepdive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mkt-deepdive-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.mkt-deepdive-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--mkt-green); }
.mkt-deepdive-visual { display: flex; justify-content: center; min-width: 0; }
.mkt-deepdive-visual svg, .mkt-deepdive-visual img { max-width: 100%; height: auto; display: block; }
.mkt-deepdive-row:nth-child(even) .mkt-deepdive-visual { order: -1; }

@media (min-width: 900px) {
  .mkt-deepdive-row { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ---------- Platform overview strip (icons in a row, product page) ---------- */
.mkt-overview-grid { max-width: var(--mkt-max); margin: 0 auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--hairline); border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline); }
.mkt-overview-cell { background: var(--white); padding: 26px 22px; }
.mkt-overview-cell .mkt-bento-icon { margin-bottom: 14px; }
.mkt-overview-cell h4 { font-size: 15px; margin: 0 0 6px; }
.mkt-overview-cell p { font-size: 13px; color: var(--grey); line-height: 1.55; margin: 0; }
@media (min-width: 720px) { .mkt-overview-grid { grid-template-columns: repeat(4,1fr); } }

/* ---------- Interactive industry selector (solutions page) ---------- */
.mkt-industry-shell { max-width: var(--mkt-max); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.mkt-industry-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mkt-industry-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--hairline);
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.mkt-industry-pill:hover { border-color: var(--grey-light); }
.mkt-industry-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mkt-industry-pill svg { flex-shrink: 0; }
.mkt-industry-panel {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1fr; gap: 28px;
  box-shadow: var(--shadow-lift);
}
.mkt-industry-panel-copy h3 { font-size: 23px; margin: 0 0 12px; letter-spacing: -0.01em; }
.mkt-industry-panel-copy p { color: var(--grey); font-size: 15px; line-height: 1.65; max-width: 50ch; margin: 0 0 18px; }
.mkt-industry-usecases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mkt-industry-usecases li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); }
.mkt-industry-usecases li svg { flex-shrink: 0; margin-top: 3px; color: var(--miz-red); }
.mkt-industry-panel-visual { display: flex; align-items: center; justify-content: center; background: var(--paper); border-radius: 14px; padding: 24px; min-height: 180px; }
.mkt-industry-panel-visual svg { max-width: 100%; height: auto; }
@media (min-width: 860px) { .mkt-industry-panel { grid-template-columns: 1.1fr .9fr; } }

/* ---------- Tabs (used on feature pages) ---------- */
.mkt-tabs-nav { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--hairline); max-width: var(--mkt-max); margin: 0 auto 36px; }
.mkt-tab-btn { padding: 12px 18px; font-size: 14.5px; font-weight: 600; color: var(--grey); border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
.mkt-tab-btn.is-active { color: var(--ink); border-bottom-color: var(--miz-red); }
.mkt-tab-panel { display: none; }
.mkt-tab-panel.is-active { display: block; }

/* ---------- Stat strip ---------- */
.mkt-stat-strip { max-width: var(--mkt-max); margin: 0 auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; padding: 40px 0; }
.mkt-stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.mkt-stat span { font-size: 13.5px; color: var(--grey); }
@media (min-width: 720px) { .mkt-stat-strip { grid-template-columns: repeat(4,1fr); } }

/* ---------- CTA band ---------- */
.mkt-cta-band {
  max-width: var(--mkt-max); margin: 0 auto; background: var(--ink); border-radius: 24px; padding: 56px 44px; text-align: center; position: relative; overflow: hidden;
}
.mkt-cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 20% 0%, rgba(230,61,46,.28), transparent 60%), radial-gradient(460px 300px at 85% 100%, rgba(46,111,230,.2), transparent 60%);
}
.mkt-cta-band h2 { position: relative; z-index: 1; color: #fff; font-size: clamp(24px,3vw,32px); max-width: 24ch; margin: 0 auto 14px; letter-spacing: -0.01em; }
.mkt-cta-band p { position: relative; z-index: 1; color: #C6C6CC; max-width: 52ch; margin: 0 auto 28px; font-size: 15.5px; line-height: 1.6; }
.mkt-cta-band .lp-close-ctas { position: relative; z-index: 1; }

/* ---------- Feature-page persona/use-case list ---------- */
.mkt-usecase-grid { max-width: var(--mkt-max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 14px; }
.mkt-usecase-card { background: var(--white); border: 1px solid var(--hairline); border-radius: 14px; padding: 22px 24px; }
.mkt-usecase-card strong { display: block; font-size: 15px; margin-bottom: 6px; }
.mkt-usecase-card span { font-size: 14px; color: var(--grey); line-height: 1.55; }
@media (min-width: 720px) { .mkt-usecase-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .mkt-usecase-grid { grid-template-columns: repeat(4,1fr); } }

/* ---------- Premium footer ---------- */
.mkt-footer { background: var(--ink); color: #C6C6CC; padding: 64px 6vw 28px; }
.mkt-footer-top { max-width: var(--mkt-max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mkt-footer-brand { max-width: 320px; }
.mkt-footer-brand .mkt-logo img { height: 34px; }
.mkt-footer-brand p { font-size: 13.5px; color: #9C9CA3; line-height: 1.6; margin: 16px 0 0; }
.mkt-footer-cols { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.mkt-footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 16px; }
.mkt-footer-col a { display: block; color: #A9A9B0; font-size: 14px; padding: 6px 0; }
.mkt-footer-col a:hover { color: #fff; text-decoration: none; }
.mkt-footer-bottom { max-width: var(--mkt-max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: 12.5px; color: #7A7A82; }
@media (min-width: 720px) { .mkt-footer-top { grid-template-columns: 1.2fr 2fr; } }
@media (min-width: 720px) { .mkt-footer-cols { grid-template-columns: repeat(3,1fr); } }

@media (prefers-reduced-motion: reduce) {
  .mkt-nav-link svg, .mkt-nav-dropdown, .mkt-mobile-panel, .mkt-bento-card, .mkt-industry-pill { transition: none !important; }
}

/* ============================================================
   Product mockup component — a CSS-built "browser window" with
   fake UI rows/cards inside, used across the product & feature
   pages instead of real screenshots (per brand guidance: no
   internal-app screenshots, marketing-only representations).
   ============================================================ */
.mkt-mock {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-modal);
  overflow: hidden; max-width: 520px; margin: 0 auto; transform: perspective(1400px) rotateX(1deg);
}
.mkt-mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); background: var(--paper); }
.mkt-mock-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--hairline); }
.mkt-mock-dot:nth-child(1) { background: #E9877A; }
.mkt-mock-dot:nth-child(2) { background: #E8C878; }
.mkt-mock-dot:nth-child(3) { background: #8FCB9B; }
.mkt-mock-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.mkt-mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hairline-soft); border-radius: 11px; background: var(--white); }
.mkt-mock-row.is-highlight { border-color: rgba(230,61,46,.25); background: #FFFBFA; }
.mkt-mock-avatar { width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.mkt-mock-row-main { flex: 1; min-width: 0; }
.mkt-mock-row-main strong { display: block; font-size: 13px; color: var(--ink); }
.mkt-mock-row-main span { display: block; font-size: 11.5px; color: var(--grey); margin-top: 1px; }
.mkt-mock-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mkt-mock-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mkt-mock-stat { padding: 14px; border-radius: 11px; background: var(--paper); text-align: center; }
.mkt-mock-stat strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.mkt-mock-stat span { display: block; font-size: 10.5px; color: var(--grey); margin-top: 2px; }
.mkt-mock-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 4px 2px; }
.mkt-mock-bar-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--miz-red), rgba(230,61,46,.55)); display: block; }
.mkt-mock-float {
  position: absolute; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-lift);
  padding: 10px 14px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.mkt-mock-wrap { position: relative; padding: 10px; }
