/*
 * marketing.css — public homepage + static marketing pages.
 * Extracted from index.php inline <style> (v189.13.722) and reworked
 * into an editorial redesign (v189.13.723). EVERYTHING here is scoped
 * to body.marketing-body or .mk-* / .mega-* classes so it can never
 * leak into the admin, invite, or rsvp surfaces (which load app.css).
 *
 * Palette (locked): cream #fbf7f2 · espresso #1a110d · terracotta #C8533D.
 * A slightly deeper terracotta (--mk-cta) is used ONLY behind white CTA
 * text so it clears WCAG AA; #C8533D stays the visible brand accent.
 * Type (locked): Fraunces headings · Inter body.
 */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

body.marketing-body {
  --mk-cream:      #fbf7f2;
  --mk-cream-2:    #f4ece1;
  --mk-card:       #fffdfa;
  --mk-espresso:   #1a110d;
  --mk-ink:        #2a1f1a;
  --mk-muted:      #6f5d52;     /* AA on cream (>=4.5:1) */
  --mk-terracotta: #C8533D;     /* brand accent */
  --mk-cta:        #b8472f;     /* deeper — white text clears AA */
  --mk-cta-hover:  #a23d28;
  --mk-btn:        #c8533d;     /* buttons match the logo mark */
  --mk-btn-hover:  #b8472f;
  --mk-line:       rgba(26,17,13,.12);
  --mk-line-soft:  rgba(26,17,13,.07);
  --mk-shadow:     0 1px 2px rgba(26,17,13,.05), 0 8px 24px rgba(26,17,13,.07);
  --mk-shadow-lg:  0 2px 6px rgba(26,17,13,.06), 0 24px 60px rgba(26,17,13,.13);
  --mk-maxw:       1140px;
  --mk-radius:     18px;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mk-ink);
  background: var(--mk-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.marketing-body * { box-sizing: border-box; }

/* ── Film grain — one fixed, GPU-cheap overlay over the cream ──────── */
body.marketing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .19;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Lift only normal-flow content above the fixed film-grain (z-index:0).
   Deliberately scoped to sections + proof bar so it does NOT clobber the
   sticky chrome's own z-index (60, keeps mega-menu dropdowns on top) or
   override the fixed auth drawer's position/z-index (1001). The old
   `> *` rule (specificity 0,1,1) silently beat `.auth-drawer{position:fixed}`
   and `.mk-sticky-chrome{z-index:60}` — that broke login/signup + the menu. */
body.marketing-body > section,
body.marketing-body > .mk-proof-bar { position: relative; z-index: 1; }

body.marketing-body h1,
body.marketing-body h2,
body.marketing-body h3 {
  font-family: Fraunces, "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 .4em;
  color: var(--mk-espresso);
}
body.marketing-body p { margin: 0 0 1em; }
body.marketing-body a:not(.mk-button):not(.mk-pricing-cta) { color: inherit; text-decoration: none; }
body.marketing-body a.mk-button, body.marketing-body a.mk-pricing-cta { text-decoration: none; }
body.marketing-body img { max-width: 100%; display: block; }

/* Visible focus everywhere for keyboard users */
body.marketing-body :focus-visible {
  outline: 3px solid var(--mk-terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
.mk-eyebrow,
.mk-features-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mk-cta);
  margin-bottom: 12px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.mk-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  line-height: 1; white-space: nowrap;
}
.mk-button-large { font-size: 17px; padding: 16px 30px; }
.mk-button-primary { background: var(--mk-btn); color: #fff; box-shadow: var(--mk-shadow); }
.mk-button-primary:hover { background: var(--mk-btn-hover); transform: translateY(-1px); }
.mk-button-secondary { background: transparent; color: var(--mk-espresso); border-color: var(--mk-line); }
.mk-button-secondary:hover { background: var(--mk-cream-2); border-color: var(--mk-espresso); }
.mk-link-arrow {
  font-family: Inter, sans-serif; font-size: 15px; font-weight: 600;
  color: var(--mk-cta); display: inline-flex; gap: 6px; align-items: center;
}
.mk-link-arrow:hover { text-decoration: underline; }

/* ── Sticky slim chrome (topbar + mega nav) ───────────────────────── */
.mk-sticky-chrome {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,247,242,.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--mk-line-soft);
}
.mk-topbar {
  max-width: var(--mk-maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.mk-brand-lockup-img { height: 30px; width: auto; }
.mk-topbar-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 640px) {
  .mk-topbar { padding: 10px 16px; }
  .mk-topbar-cta .mk-button-secondary { display: none; }
  .mk-brand-lockup-img { height: 26px; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.mk-hero {
  max-width: var(--mk-maxw); margin: 0 auto;
  padding: 84px 24px 64px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.mk-hero-text h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 500; }
.mk-hero-lede {
  font-size: 19px; color: var(--mk-muted); max-width: 30em; margin: 22px 0 30px;
}
.mk-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mk-hero-cta-note { font-size: 14px; color: var(--mk-muted); }

/* User-controlled stationery showcase */
.mk-showcase { position: relative; }
.mk-showcase-stage {
  position: relative; aspect-ratio: 3 / 4; max-width: 400px; margin: 0 auto;
}
.mk-stationery {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
  background: var(--mk-card); border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius); box-shadow: var(--mk-shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.mk-stationery.is-active { opacity: 1; visibility: visible; }
.mk-stationery-art { position: absolute; inset: 0; overflow: hidden; background: var(--mk-cream-2); }
.mk-stationery-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mk-stationery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 40px 16px 14px; color: #fff;
  font-family: Fraunces, Georgia, serif; font-size: 16px; line-height: 1.2;
  background: linear-gradient(to top, rgba(26,17,13,.74), rgba(26,17,13,0));
}
.mk-stationery-season {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(26,17,13,.62); padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.mk-stationery-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mk-stationery-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mk-cta); }
.mk-stationery-title { font-family: Fraunces, Georgia, serif; font-size: 24px; line-height: 1.15; color: var(--mk-espresso); margin: 0; }
.mk-stationery-meta { margin-top: auto; font-size: 14px; color: var(--mk-muted); display: grid; gap: 3px; }
.mk-stationery-meta b { color: var(--mk-ink); font-weight: 600; }

.mk-showcase-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.mk-showcase-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--mk-line);
  background: var(--mk-card); color: var(--mk-espresso); font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.mk-showcase-btn:hover { background: var(--mk-cream-2); border-color: var(--mk-espresso); }
.mk-showcase-dots { display: flex; gap: 8px; }
.mk-showcase-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 999px; border: none; cursor: pointer;
  background: var(--mk-line); transition: background .2s, transform .2s;
}
.mk-showcase-dot.is-active { background: var(--mk-terracotta); transform: scale(1.25); }
.mk-showcase-pause {
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; color: var(--mk-muted);
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.mk-showcase-pause:hover { color: var(--mk-espresso); }
.mk-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 880px) {
  .mk-hero { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px 48px; text-align: center; }
  .mk-hero-lede { margin-left: auto; margin-right: auto; }
  .mk-hero-cta { justify-content: center; }
  .mk-showcase-stage { max-width: 340px; }
}

/* ── Proof bar (honest proxies only) ──────────────────────────────── */
.mk-proof-bar {
  max-width: var(--mk-maxw); margin: 0 auto; padding: 0 24px 8px;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 0; border-top: 1px solid var(--mk-line-soft);
}
.mk-proof-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 26px; min-width: 150px;
}
.mk-proof-num { font-family: Fraunces, Georgia, serif; font-size: 26px; color: var(--mk-espresso); line-height: 1; }
.mk-proof-label { font-size: 13px; color: var(--mk-muted); margin-top: 7px; max-width: 16ch; }
.mk-proof-divider { width: 1px; background: var(--mk-line-soft); align-self: stretch; margin: 14px 0; }
@media (max-width: 760px) {
  .mk-proof-divider { display: none; }
  .mk-proof-item { padding: 14px 18px; min-width: 44%; }
}

/* ── Section scaffolding ──────────────────────────────────────────── */
.mk-how, .mk-features, .mk-themes, .mk-faq-strip {
  max-width: var(--mk-maxw); margin: 0 auto; padding: 78px 24px;
}
.mk-how-header, .mk-features-header, .mk-themes-header, .mk-faq-strip-header { max-width: 34ch; margin-bottom: 44px; }
.mk-how-header h2, .mk-features-header h2, .mk-themes-header h2, .mk-faq-strip-header h2 { font-size: clamp(28px, 3.4vw, 40px); }
.mk-themes-header { max-width: 48ch; }
.mk-themes-header p { color: var(--mk-muted); }

/* How it works */
.mk-how-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 8px; }
.mk-how-step { background: var(--mk-card); border: 1px solid var(--mk-line-soft); border-radius: var(--mk-radius); padding: 26px 22px; box-shadow: var(--mk-shadow); }
.mk-how-step h3 { font-size: 19px; margin-top: 12px; }
.mk-how-step p { font-size: 15px; color: var(--mk-muted); margin: 0; }
.mk-how-step-num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--mk-cta); color: #fff;
  font-family: Inter, sans-serif; font-size: 16px; font-weight: 600; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.mk-how-step-arrow { align-self: center; color: var(--mk-line); font-size: 22px; }
@media (max-width: 860px) {
  .mk-how-steps { grid-template-columns: 1fr 1fr; }
  .mk-how-step-arrow { display: none; }
}
@media (max-width: 520px) { .mk-how-steps { grid-template-columns: 1fr; } }

/* Features — bento grid */
.mk-feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mk-feature {
  background: var(--mk-card); border: 1px solid var(--mk-line-soft); border-radius: var(--mk-radius);
  padding: 28px; box-shadow: var(--mk-shadow); grid-column: span 2;
}
.mk-feature:nth-child(1) { grid-column: span 4; }
.mk-feature:nth-child(2) { grid-column: span 2; }
.mk-feature:nth-child(3) { grid-column: span 3; }
.mk-feature:nth-child(4) { grid-column: span 3; }
.mk-feature:nth-child(5) { grid-column: span 2; }
.mk-feature:nth-child(6) { grid-column: span 4; }
.mk-feature-icon { font-size: 26px; margin-bottom: 12px; }
.mk-feature h3 { font-size: 21px; }
.mk-feature p { font-size: 15px; color: var(--mk-muted); margin: 0; }
@media (max-width: 900px) {
  .mk-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-feature, .mk-feature:nth-child(n) { grid-column: span 1 !important; }
}
@media (max-width: 560px) { .mk-feature-grid { grid-template-columns: 1fr; } }

/* Theme gallery — portrait cards */
.mk-theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mk-theme-card {
  border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--mk-cream-2);
  box-shadow: var(--mk-shadow); border: 1px solid var(--mk-line-soft);
  transition: transform .18s ease, box-shadow .18s ease; position: relative;
}
.mk-theme-card img { width: 100%; height: 100%; object-fit: cover; }
.mk-theme-card:hover { transform: translateY(-3px); box-shadow: var(--mk-shadow-lg); }
.mk-theme-card-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(26,17,13,.72));
}
.mk-theme-card-empty { display: flex; align-items: center; justify-content: center; color: var(--mk-muted); font-size: 14px; }
.mk-themes-cta { margin-top: 34px; text-align: center; }
@media (max-width: 880px) { .mk-theme-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .mk-theme-grid { grid-template-columns: repeat(2, 1fr); } }

/* Pricing strip (dark band) */
.mk-pricing-strip { background: var(--mk-espresso); padding: 78px 24px; margin-top: 24px; }
.mk-pricing-strip-wrap { max-width: var(--mk-maxw); margin: 0 auto; }
.mk-pricing-strip-header { max-width: 40ch; }
.mk-pricing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mk-pricing-card { position: relative; }
.mk-pricing-card.is-popular { transform: translateY(-6px); }
.mk-pricing-card-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--mk-cta); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.mk-pricing-card-body { border-radius: var(--mk-radius); padding: 26px 22px; height: 100%; box-shadow: var(--mk-shadow-lg); }
.mk-pricing-card-name { font-family: Fraunces, Georgia, serif; font-size: 22px; }
.mk-pricing-card-tagline { font-size: 13px; opacity: .8; margin: 4px 0 16px; }
.mk-pricing-card-price { margin-bottom: 18px; }
.mk-pricing-amount { font-family: Fraunces, Georgia, serif; font-size: 34px; }
.mk-pricing-per { font-size: 14px; opacity: .7; }
.mk-pricing-cta { display: block; text-align: center; padding: 11px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.mk-pcta-ghost { border: 1px solid rgba(0,0,0,.2); }
.mk-pcta-orange { background: var(--mk-cta); color: #fff; }
.mk-pcta-white { background: #fff; color: #1e293b; }
.mk-pcta-green { background: #166534; color: #fff; }
.mk-pricing-feats { list-style: none; padding: 0; margin: 0; font-size: 14px; display: grid; gap: 8px; }
@media (max-width: 960px) { .mk-pricing-cards { grid-template-columns: repeat(2, 1fr); } .mk-pricing-card.is-popular { transform: none; } }
@media (max-width: 520px) { .mk-pricing-cards { grid-template-columns: 1fr; } }

/* FAQ */
.mk-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.mk-faq-item h3 { font-size: 19px; }
.mk-faq-item p { font-size: 15px; color: var(--mk-muted); margin: 0; }
@media (max-width: 640px) { .mk-faq-grid { grid-template-columns: 1fr; } }

/* Closing CTA */
.mk-cta-band {
  max-width: 760px; margin: 0 auto; padding: 86px 24px; text-align: center;
}
.mk-cta-band h2 { font-size: clamp(30px, 4vw, 46px); }
.mk-cta-band p { color: var(--mk-muted); margin-bottom: 28px; }

/* ── Scroll-reveal (disabled when reduced-motion) ─────────────────── */
.mk-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.mk-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.marketing-body * { animation: none !important; }
  .mk-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mk-stationery { transition: none; }
}

/* Art placeholder — shown when a theme has no resolvable preview URL,
   so the slot is a calm tinted block instead of a blank gap. */
.mk-stationery-art .mk-art-ph { position: absolute; inset: 0; }
.mk-theme-card .mk-art-ph { display: block; width: 100%; aspect-ratio: 3 / 4; }
