/* dashboard/static/style-marketing.css
   Marketing page styles. Requires style-tokens.css loaded first.
   Uses --lp-* tokens only — no hardcoded color or spacing values. */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* author display rules override UA [hidden]; re-enforce it */
[hidden] { display: none !important; }

body {
  background: var(--lp-bg);
  color: var(--lp-text-body);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Shared utilities ─────────────────────────────────────── */
.m-container {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
}

.m-section {
  padding: var(--lp-section-gap) var(--lp-gutter);
}

.m-section-inner {
  max-width: var(--lp-max-w);
  margin: 0 auto;
}

.m-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-primary);
  text-align: center;
  margin-bottom: 12px;
}

.m-section-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--lp-text);
  text-align: center;
  margin-bottom: 12px;
}

.m-section-sub {
  font-size: 16px;
  color: var(--lp-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--lp-r);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.m-btn-sm { font-size: 13px; padding: 8px 16px; }

.m-btn-primary {
  background: var(--lp-primary);
  color: #fff;
}
.m-btn-primary:hover { background: var(--lp-primary-hover); }

.m-btn-secondary {
  background: transparent;
  border: 1.5px solid var(--lp-primary);
  color: var(--lp-primary);
}
.m-btn-secondary:hover { background: var(--lp-primary-light); }

/* ── Chips ────────────────────────────────────────────────── */
.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--lp-r-pill);
  line-height: 1;
}

.m-chip-xs  { font-size: 11px; padding: 2px 9px; }

.m-chip-sky      { background: var(--lp-primary-light); color: #1e4c5f; }
.m-chip-mint     { background: var(--lp-mint);          color: var(--lp-mint-text); }
.m-chip-lavender { background: var(--lp-lavender);      color: var(--lp-lavender-text); }
.m-chip-peach    { background: var(--lp-peach);         color: var(--lp-peach-text); }

/* ── Nav ──────────────────────────────────────────────────── */
.m-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--lp-border-soft);
}

.m-nav-inner {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  position: relative;
  padding: 14px var(--lp-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
}

.m-nav-brand {
  position: static;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin-left: 116px;
  min-height: 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-primary);
  text-decoration: none;
}

.m-nav-brand-logo {
  position: absolute;
  left: var(--lp-gutter);
  bottom: 0;
  transform: translateY(calc(44% + 4px));
  display: block;
  width: 100px;
  height: 100px;
  background: transparent;
  object-fit: contain;
  z-index: 50;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.16));
  pointer-events: none;
}

.m-nav-brand-text {
  line-height: 1;
  position: relative;
  z-index: 2;
}

.m-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.m-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-subtle);
  text-decoration: none;
  transition: color 0.15s;
}
.m-nav-links a:hover { color: var(--lp-text); }

.m-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-subtle);
  text-decoration: none;
  transition: color 0.15s;
}
.m-nav-login:hover { color: var(--lp-text); }

/* ── Hero ─────────────────────────────────────────────────── */
.m-hero {
  padding: 96px var(--lp-gutter) 80px;
  text-align: center;
  background: linear-gradient(180deg, #eaf4f8 0%, var(--lp-bg) 100%);
  overflow: hidden;
}

.m-hero-inner {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.m-hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--lp-text);
  max-width: 640px;
}

.m-hero-h1 em {
  font-style: italic;
  color: var(--lp-primary);
}

.m-hero-sub {
  font-size: 18px;
  color: var(--lp-muted);
  line-height: 1.6;
  max-width: 480px;
}

.m-hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero dashboard preview card */
.m-hero-preview {
  margin-top: 24px;
  width: 100%;
  max-width: 600px;
  background: var(--lp-surface-0);
  border-radius: var(--lp-r-lg);
  border: 1px solid var(--lp-border);
  box-shadow: 0 20px 60px -10px rgba(15, 23, 42, 0.10);
  padding: 20px 24px;
  text-align: left;
}

.m-hero-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.m-hero-preview-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
}

.m-hero-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-hero-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--lp-surface-1);
  border-radius: var(--lp-r);
}

.m-hero-preview-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text-body);
}

.m-hero-preview-row-co {
  font-size: 11px;
  color: var(--lp-subtle);
  margin-top: 1px;
}

.m-hero-preview-score {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--lp-r-pill);
  flex-shrink: 0;
}

/* ── Features ─────────────────────────────────────────────── */
.m-features { background: var(--lp-surface-0); }

.m-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.m-feature-card {
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-r-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.m-feature-card:hover { box-shadow: var(--lp-shadow-md); }

.m-feature-chip { margin-bottom: 16px; }

.m-feature-icon {
  font-size: 28px;
  color: var(--lp-primary);
  margin-bottom: 14px;
  display: block;
}

.m-feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 8px;
}

.m-feature-desc {
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.5;
}

/* ── How it works ─────────────────────────────────────────── */
.m-how { background: var(--lp-surface-1); }

.m-steps {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
}

.m-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 32px;
  position: relative;
}

/* connector line between steps */
.m-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--lp-border);
}

.m-step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--lp-r-pill);
  background: var(--lp-primary);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.m-step-body { padding-top: 4px; }

.m-step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 6px;
}

.m-step-desc {
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.5;
}

/* ── Pricing ──────────────────────────────────────────────── */
.m-pricing { background: var(--lp-surface-0); }

.m-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.m-plan {
  background: var(--lp-surface-0);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-r-lg);
  padding: 28px 24px;
}

.m-plan-featured {
  border-color: var(--lp-primary);
  background: #f0f9ff;
  box-shadow: 0 8px 32px -4px rgba(57, 100, 119, 0.15);
}

.m-plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--lp-r-pill);
  background: var(--lp-primary-light);
  color: #1e4c5f;
  margin-bottom: 12px;
}

.m-plan-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 4px;
}

.m-plan-desc {
  font-size: 13px;
  color: var(--lp-subtle);
  margin-bottom: 16px;
  line-height: 1.5;
}

.m-plan-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--lp-primary);
  margin-bottom: 20px;
  line-height: 1;
}

.m-plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--lp-subtle);
}

.m-plan-price-custom {
  font-size: 24px;
  padding-top: 8px;
}

.m-plan-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

.m-plan-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--lp-border);
  padding-top: 16px;
}

.m-plan-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--lp-muted);
}

.m-plan-item i {
  color: var(--lp-primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Plan tabs ────────────────────────────────────────────── */
.m-plan-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-r-pill);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.m-plan-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--lp-r-pill);
  border: none;
  background: transparent;
  color: var(--lp-subtle);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.m-plan-tab-active {
  background: var(--lp-surface-0);
  color: var(--lp-text);
  box-shadow: var(--lp-shadow-xs);
}

.m-plan-tab:hover:not(.m-plan-tab-active) { color: var(--lp-text); }

/* ── Plan group (tab panel) ───────────────────────────────── */
.m-plan-group { margin-bottom: 24px; }

.m-plan-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.m-plan-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}

.m-plan-agent-beta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-muted);
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-r-md);
}

.m-plan-agent-beta i {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--lp-primary);
}

/* ── Credit packs note ────────────────────────────────────── */
.m-credit-packs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 16px 20px;
  background: var(--lp-surface-1);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-r-lg);
  font-size: 14px;
  color: var(--lp-muted);
}

.m-credit-packs i {
  font-size: 20px;
  color: var(--lp-primary);
  flex-shrink: 0;
}

.m-credit-packs strong { color: var(--lp-text); }

/* ── CTA banner ───────────────────────────────────────────── */
.m-cta {
  background: var(--lp-text);
  padding: var(--lp-section-gap) var(--lp-gutter);
  text-align: center;
}

.m-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.m-cta-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.m-cta-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 32px;
}

.m-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.m-btn-cta-primary  { background: #fff; color: var(--lp-text); }
.m-btn-cta-primary:hover { background: rgba(255, 255, 255, 0.9); }

.m-btn-cta-secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.m-btn-cta-secondary:hover { border-color: rgba(255, 255, 255, 0.7); }

/* ── Footer ───────────────────────────────────────────────── */
.m-footer {
  background: var(--lp-text-body);
  padding: 24px var(--lp-gutter);
}

.m-footer-inner {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.m-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-primary-light);
}

.m-footer-brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.m-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.m-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.m-footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.m-footer-links a:hover { color: rgba(255, 255, 255, 0.85); }

/* ── Responsive — 768px breakpoint ───────────────────────── */
@media (max-width: 768px) {
  .m-hero-h1    { font-size: 32px; }
  .m-hero-sub   { font-size: 16px; }
  .m-hero-btns  { flex-direction: column; align-items: center; }

  .m-nav-links  { display: none; }

  .m-nav-brand {
    margin-left: 108px;
  }

  .m-nav-brand-logo {
    width: 100px;
    height: 100px;
    bottom: 0;
    transform: translateY(calc(42% + 4px));
  }

  .m-section-h2 { font-size: 24px; }
  .m-section-sub { font-size: 15px; }

  .m-feature-grid { grid-template-columns: 1fr; }

  .m-plan-grid    { grid-template-columns: 1fr; }
  .m-plan-grid-4  { grid-template-columns: 1fr; }
  .m-plan-grid-5  { grid-template-columns: 1fr; }

  .m-cta-h2    { font-size: 26px; }
  .m-cta-btns  { flex-direction: column; align-items: center; }

  .m-footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .m-footer-links { flex-wrap: wrap; justify-content: center; }
}
