/* ============================================================
   LEXY MARKETING — shared styles for the public landing pages
   (index, publishers, brands, pricing). Stacker-inspired:
   Libre Baskerville (var(--font-display)) for display headlines,
   DM Sans (var(--font-sans)) for everything else. Lexy colors.
   Namespaced .mk-* so it never collides with .new-* (app chrome)
   or .lx-* (home). Font vars come from lexy-new-design.css :root.
   ============================================================ */
:root{
  --mk-ink:#231E41; --mk-purple:#8D75E6; --mk-purple-dark:#7458CC;
  --mk-muted:#6F6F87; --mk-dim:#8A84A6;
  --mk-bg:#F3ECF7; --mk-card:#ffffff;
}

/* small uppercase label (Stacker eyebrow) */
.mk-eyebrow{font-family:var(--font-sans);font-weight:700;font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--mk-purple);}

/* ---------- HERO ---------- */
.mk-hero{background:var(--mk-bg);text-align:center;padding:72px 24px 64px;}
/* full-bleed muted hairline at hero bottom (opt-in, no padding/margin added) */
.mk-hero-divider{border-bottom:1px solid rgba(27,24,48,.07);}
.mk-hero-inner{max-width:780px;margin:0 auto;}
.mk-h1{font-family:var(--font-display);font-weight:400;font-size:52px;line-height:1.1;letter-spacing:-1.5px;color:var(--mk-ink);margin:0;text-wrap:balance;}
.mk-h1 .mk-accent{color:inherit;}
.mk-lead{font-family:var(--font-sans);font-size:17px;line-height:1.55;color:var(--mk-muted);margin:20px auto 0;max-width:600px;}
.mk-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:30px;}
.mk-pill{display:inline-flex;align-items:center;text-decoration:none;border-radius:11px;padding:14px 22px;font-family:var(--font-sans);font-size:13px;font-weight:700;letter-spacing:.2px;transition:transform .15s ease,background .15s ease,border-color .15s ease;}
.mk-pill:hover{transform:translateY(-1px);}
.mk-pill-primary{background:var(--mk-purple);color:#fff;}
.mk-pill-primary:hover{background:var(--mk-purple-dark);}
.mk-pill-ghost{background:#fff;color:var(--mk-purple-dark);border:1px solid #D9CCF2;}
.mk-pill-ghost:hover{border-color:var(--mk-purple);}
.mk-pill-desc{font-weight:500;opacity:.9;}
.mk-pill-ghost .mk-pill-desc{color:var(--mk-ink);opacity:1;}
/* hero split (index): copy left + invite-box right */
.mk-hero-split{text-align:left;padding:60px 50px;}
.mk-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;}
.mk-hero-split .mk-h1{font-size:46px;line-height:1.1;letter-spacing:-1.2px;}
.mk-hero-split .mk-lead{margin:20px 0 0;max-width:520px;}
.mk-hero-split .mk-actions{justify-content:flex-start;}
/* pin the copy column to the top so the headline lands at the same Y on every
   marketing page, regardless of the right column's height (invite-box vs image) */
.mk-hero-copy{align-self:start;}
.mk-hero-side{display:flex;justify-content:center;}
/* hero animation stage (index default): centers the moved demo card in the hero's right column */
.mk-hero-anim{display:flex;align-items:center;justify-content:center;min-height:520px;zoom:.8;}
/* card corner is owned by the component's inline radius (hero_demo_card.cfm) — no !important override here */
/* feature checkmarks row under the hero action buttons */
.mk-hero-feats{display:flex;flex-wrap:wrap;gap:9px 26px;margin-top:22px;}
.mk-hero-feats span{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-sans);font-size:12.5px;color:var(--mk-dim);white-space:nowrap;}
.mk-hero-feats svg{flex-shrink:0;color:var(--mk-purple);}
[data-theme="dark"] .mk-hero-feats span{color:rgba(232,228,240,.6);}
/* invite-only line under the features row */
.mk-hero-invite{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:52px;font-size:13px;color:var(--mk-muted);}
.mk-hero-invite svg{width:14px;height:14px;flex-shrink:0;}
.mk-hero-invite a{display:inline-flex;align-items:center;gap:5px;color:var(--mk-purple);font-weight:400;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
.mk-hero-invite a:hover{color:var(--mk-purple-dark);}
/* hero illustration (publishers/brands): minimalist SVG in the blog-image style */
.mk-hero-img{width:100%;max-width:560px;height:auto;display:block;border-radius:18px;border:1px solid #ECE8F7;}
@media (max-width:900px){
  .mk-hero-grid{grid-template-columns:1fr;gap:32px;}
  .mk-hero-split{padding:44px 20px;}
  .mk-hero-split .mk-h1{font-size:34px;}
  .mk-hero-img{max-width:480px;margin:0 auto;}
  .mk-hero-invite{justify-content:center;text-align:center;margin-top:28px;}
  .mk-hero-anim{min-height:0;zoom:1;min-width:0;max-width:100%;overflow:hidden;}
  .mk-hero-anim #lxHeroCard{width:100% !important;max-width:100% !important;}
}
[data-theme="dark"] .mk-hero-img{border-color:rgba(255,255,255,.1);}

/* ---------- BOXED HERO BANNER (image + actions inside a card; the box is its own divider) ---------- */
/* Full-width hero: side gutter matches content sections (50px) so the box lines up edge-to-edge, like home.cfm. */
.mk-hero.mk-hero-box{padding:32px 50px 44px;}
.mk-hero-box .mk-hero-grid{background:var(--mk-card);border:1px solid #ECE8F7;border-radius:24px;padding:44px 48px;}
/* Right-align the hero box's right element (image / invite box) to the box edge */
.mk-hero-box .mk-hero-side{justify-content:flex-end;}
/* Opt-out: left-align the right element instead (Lexy Originals image) */
.mk-hero-box .mk-hero-side.mk-hero-side-start{justify-content:flex-start;}
/* Public marketing header: match the content gutter (hero box edge + sections = 50px) */
@media (min-width:901px){ .new-header.new-header-public{padding-left:50px;padding-right:50px;} }
/* Mobile: match the 20px content gutter (.mk-hero-box padding) so header aligns with the body */
@media (max-width:900px){ .new-header.new-header-public{padding-left:20px;padding-right:20px;} }
[data-theme="dark"] .mk-hero-box .mk-hero-grid{background:#1A2240;border-color:rgba(255,255,255,.1);box-shadow:none;}
/* Index hero: keep the white box; give the invite form a lighter tint so it stands out (not white on white). */
.mk-hero-box .invite-box{background:#F3ECF7;width:calc(100% - 30px);}
[data-theme="dark"] .mk-hero-box .invite-box{background:#222B4D;}
@media (max-width:900px){
  .mk-hero.mk-hero-box{padding:16px 20px 28px;}
  .mk-hero-box .mk-hero-grid{padding:28px 22px;border-radius:18px;}
}

/* ---------- SECTION HEADINGS ---------- */
.mk-serif-h2{font-family:var(--font-display);font-weight:400;font-size:34px;line-height:1.14;letter-spacing:-.025em;color:var(--mk-ink);margin:12px 0 0;text-wrap:balance;}
.mk-h2{font-family:var(--font-display);font-weight:400;font-size:34px;line-height:1.14;letter-spacing:-.025em;color:var(--mk-ink);margin:12px 0 0;text-wrap:balance;}

/* ---------- FEATURES (shared with login) ---------- */
.mk-feat{background:var(--mk-bg);padding:56px 50px;}
.mk-feat-head{margin:0 0 32px;}
.mk-feat-sub{font-family:var(--font-sans);font-size:17px;line-height:1.55;color:var(--mk-muted);margin:12px 0 0;max-width:620px;}
.mk-feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.mk-feat-card{background:var(--mk-card);border:1px solid #ECE8F7;border-radius:18px;padding:24px;}
.mk-feat-ic{width:42px;height:42px;border-radius:12px;background:#F1ECFE;color:var(--mk-purple);display:flex;align-items:center;justify-content:center;margin-bottom:16px;}
.mk-feat-card h3{font-family:var(--font-sans);font-size:17px;font-weight:700;color:var(--mk-ink);margin:0 0 6px;letter-spacing:-.01em;}
.mk-feat-card p{font-family:var(--font-sans);font-size:14.5px;color:#6E6886;margin:0;line-height:1.55;}

/* ---------- HOW IT WORKS (connected process row) ---------- */
.mk-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:36px;margin-top:10px;}
.mk-step{position:relative;}
.mk-step-ic{position:relative;width:64px;height:64px;border-radius:18px;background:#fff;border:1px solid rgba(141,117,230,.28);color:var(--mk-purple);display:flex;align-items:center;justify-content:center;margin-bottom:22px;z-index:1;}
.mk-step-n{position:absolute;top:-9px;right:-9px;min-width:24px;height:24px;padding:0 6px;box-sizing:border-box;border-radius:999px;background:var(--mk-purple);color:#fff;font-family:var(--font-sans);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;z-index:2;}
.mk-step h3{font-family:var(--font-sans);font-size:18px;font-weight:700;color:var(--mk-ink);margin:0 0 7px;letter-spacing:-.01em;}
.mk-step p{font-family:var(--font-sans);font-size:14.5px;color:#6E6886;margin:0;line-height:1.55;}
/* gradient connector line behind the chips */
.mk-step:not(:last-child)::after{content:"";position:absolute;top:31px;left:32px;width:calc(100% + 36px);height:2px;background:linear-gradient(90deg,rgba(141,117,230,.5),rgba(141,117,230,.14));z-index:0;}
[data-theme="dark"] .mk-step h3{color:#fff;}
[data-theme="dark"] .mk-step p{color:rgba(255,255,255,.7);}
[data-theme="dark"] .mk-step-ic{background:#1A2240;border-color:rgba(141,117,230,.4);color:#B7A6F2;}
[data-theme="dark"] .mk-step:not(:last-child)::after{background:linear-gradient(90deg,rgba(141,117,230,.55),rgba(141,117,230,.12));}
@media (max-width:900px){
  .mk-steps{grid-template-columns:1fr 1fr;gap:30px 18px;}
  .mk-step:not(:last-child)::after{display:none;}
}

/* ---------- BLOG ---------- */
.mk-blog{background:var(--mk-bg);padding:64px 50px 64px;}
.mk-blog-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;}
.mk-viewall{font-family:var(--font-sans);font-size:14px;font-weight:600;color:var(--mk-purple);text-decoration:none;white-space:nowrap;}
.mk-viewall:hover{color:var(--mk-purple-dark);}
.mk-blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:22px;}
.mk-blog-card{text-decoration:none;display:block;}
.mk-blog-thumb{height:170px;border-radius:16px;overflow:hidden;background:#ECE3F8;}
.mk-blog-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.mk-blog-cat{margin-top:14px;}
.mk-blog-title{font-family:var(--font-sans);font-size:17px;font-weight:600;line-height:1.35;color:var(--mk-ink);margin-top:7px;letter-spacing:-.01em;}
.mk-blog-card:hover .mk-blog-title{color:var(--mk-purple-dark);}

/* ---------- BLOG CARDS (reuse the /blog list card style) ---------- */
.blog-card{background:#fff;border-radius:1rem;overflow:hidden;border:1px solid #e5e7eb;text-decoration:none;transition:all .3s ease;display:block;}
.blog-card:hover{border-color:#d8b4fe;transform:translateY(-2px);}
.blog-card-image{aspect-ratio:16/9;overflow:hidden;border-bottom:1px solid rgba(0,0,0,.06);transition:border-color .3s ease;}
.blog-card:hover .blog-card-image{border-bottom-color:rgba(141,117,230,.25);}
.blog-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease;}
.blog-card:hover .blog-card-image img{transform:scale(1.05);}
.blog-card-content{padding:1.5rem;}
.blog-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;font-size:.75rem;margin-bottom:1rem;}
.blog-category-badge{padding:.25rem .75rem;background:#f3e8ff;color:#8D75E6;border-radius:999px;font-weight:500;}
.meta-text{color:#6b7280;}
.meta-dot{color:#d1d5db;}
.blog-card-title{font-size:1.25rem;font-weight:600;color:#231E41;margin-bottom:1rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s;}
.blog-card:hover .blog-card-title{color:#8D75E6;}
.blog-card-desc{color:#6b7280;font-size:.875rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.mk-blog-grid .blog-card:nth-child(1) .blog-card-image{background:linear-gradient(135deg,#f3e8ff 0%,#e0d4f7 100%);}
.mk-blog-grid .blog-card:nth-child(2) .blog-card-image{background:linear-gradient(135deg,#e8f5f0 0%,#d4ede2 100%);}
.mk-blog-grid .blog-card:nth-child(3) .blog-card-image{background:linear-gradient(135deg,#fdf0e8 0%,#f7e4d4 100%);}
[data-theme="dark"] .blog-card{background:#1A1B2E;border-color:rgba(255,255,255,.1);}
[data-theme="dark"] .blog-card:hover{border-color:#7c3aed;}
[data-theme="dark"] .blog-card-title{color:#fff;}
[data-theme="dark"] .blog-card:hover .blog-card-title{color:#c4b5fd;}
[data-theme="dark"] .blog-card-desc{color:rgba(255,255,255,.6);}
[data-theme="dark"] .blog-category-badge{background:#2A1B3E;color:#c4b5fd;}
[data-theme="dark"] .meta-text{color:rgba(255,255,255,.5);}
[data-theme="dark"] .meta-dot{color:rgba(255,255,255,.2);}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .mk-hero{padding:52px 20px 46px;}
  .mk-h1{font-size:34px;letter-spacing:-.8px;}
  .mk-lead{font-size:17px;}
  .mk-serif-h2{font-size:28px;}
  .mk-h2{font-size:26px;}
  /* Fill each heading line greedily on mobile: text-wrap:balance shortens the
     first line to even things out, which reads as wrapping with space to spare. */
  .mk-h1,.mk-serif-h2,.mk-h2,.mk-band-h2{text-wrap:normal;text-wrap:pretty;}
  /* Invite box fills the hero card on mobile (drop the desktop 30px trim). */
  .mk-hero-box .invite-box{width:100%;}
  .mk-feat{padding:40px 20px;}
  .mk-blog{padding:44px 20px 48px;}
  .mk-actions{flex-direction:column;}
  .mk-pill{justify-content:center;}
  /* features + blog become full-bleed swipeable carousels */
  .mk-feat-grid,.mk-blog-grid{display:flex;grid-template-columns:none;gap:14px;
    margin:22px -20px 0;padding:4px 20px;overflow-x:auto;-webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;scroll-padding-left:20px;
    scrollbar-width:none;-ms-overflow-style:none;}
  .mk-feat-grid{margin-top:0;}
  .mk-feat-grid::-webkit-scrollbar,.mk-blog-grid::-webkit-scrollbar{display:none;}
  .mk-feat-card,.mk-blog-card,.mk-blog-grid .blog-card{flex:0 0 82vw;max-width:340px;scroll-snap-align:start;}
}

/* ---------- DARK MODE (chrome follows the app toggle) ---------- */
[data-theme="dark"] .mk-hero,
[data-theme="dark"] .mk-feat,
[data-theme="dark"] .mk-blog{background:#0F1629;}
[data-theme="dark"] .mk-hero-divider{border-bottom-color:rgba(255,255,255,.12);}
[data-theme="dark"] .mk-h1,
[data-theme="dark"] .mk-serif-h2,
[data-theme="dark"] .mk-h2,
[data-theme="dark"] .mk-blog-title{color:#fff;}
[data-theme="dark"] .mk-lead,
[data-theme="dark"] .mk-feat-sub,
[data-theme="dark"] .mk-feat-card p{color:rgba(255,255,255,.7);}
[data-theme="dark"] .mk-eyebrow{color:#B7A6F2;}
[data-theme="dark"] .mk-feat-card{background:#1A2240;border-color:rgba(255,255,255,.1);box-shadow:none;}
[data-theme="dark"] .mk-feat-card h3{color:#fff;}
[data-theme="dark"] .mk-feat-ic{background:rgba(141,117,230,.18);color:#B7A6F2;}
[data-theme="dark"] .mk-pill-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.2);}
[data-theme="dark"] .mk-pill-ghost .mk-pill-desc{color:#fff;}

/* ---------- LANDING SECTIONS (publishers / brands) ---------- */
.mk-section{background:var(--mk-bg);padding:56px 50px;}
.mk-section-head{max-width:660px;margin:0 0 30px;}
.mk-section-head.mk-center{margin-left:auto;margin-right:auto;text-align:center;}
.mk-stats{background:var(--mk-bg);display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:44px 50px 52px;}
.mk-stat-num{font-family:var(--font-display);font-weight:400;font-size:44px;line-height:1;color:var(--mk-ink);letter-spacing:-1px;}
.mk-stat-label{font-family:var(--font-sans);font-size:14px;line-height:1.4;color:var(--mk-muted);margin-top:8px;}
.mk-band{background:#221C40;color:#fff;padding:56px 50px;}
.mk-band .mk-eyebrow{color:#B7A6F2;}
.mk-band-h2{font-family:var(--font-display);font-weight:400;font-size:34px;line-height:1.15;letter-spacing:-.5px;color:#fff;margin:8px 0 0;text-wrap:balance;}
.mk-band-sub{font-family:var(--font-sans);font-size:17px;line-height:1.55;color:rgba(255,255,255,.7);margin:14px 0 0;max-width:560px;}
.mk-band-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px;}
.mk-band-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:22px;}
.mk-band-ic{width:38px;height:38px;border-radius:10px;background:rgba(141,117,230,.22);color:#C9BBF5;display:flex;align-items:center;justify-content:center;margin-bottom:13px;}
.mk-band-card h3{font-family:var(--font-sans);font-size:16px;font-weight:700;color:#fff;margin:0 0 6px;}
.mk-band-card p{font-family:var(--font-sans);font-size:14px;line-height:1.5;color:rgba(255,255,255,.65);margin:0;}
@media (max-width:900px){
  .mk-section,.mk-band{padding:40px 20px;}
  .mk-stats{grid-template-columns:repeat(2,1fr);padding:30px 20px 36px;gap:22px;}
  .mk-stat-num{font-size:34px;}
  .mk-band-h2{font-size:28px;}
  .mk-band-grid{grid-template-columns:1fr;}
}
[data-theme="dark"] .mk-section,
[data-theme="dark"] .mk-stats{background:#0F1629;}

/* ---------- LEXY ORIGINALS TEASER BANNER ---------- */
.mk-originals{background:var(--mk-bg);padding:8px 50px 44px;}
.mk-originals-card{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;background:var(--mk-card);border:1px solid #ECE8F7;border-radius:24px;padding:44px 48px;}
.mk-originals-side{display:flex;justify-content:center;}
.mk-originals-side img{width:100%;max-width:520px;height:auto;border-radius:16px;display:block;}
.mk-originals .mk-actions{justify-content:flex-start;margin-top:26px;}
@media (max-width:900px){
  .mk-originals{padding:8px 20px 32px;}
  .mk-originals-card{grid-template-columns:1fr;gap:26px;padding:30px 24px;}
}
[data-theme="dark"] .mk-originals{background:#0F1629;}
[data-theme="dark"] .mk-originals-card{background:#1A2240;border-color:rgba(255,255,255,.1);box-shadow:none;}
[data-theme="dark"] .mk-stat-num{color:#fff;}
[data-theme="dark"] .mk-stat-label{color:rgba(255,255,255,.6);}
