:root {
  --bg: #F2F1F6;
  --surface: #FFFFFF;
  --text: #10213f;
  --muted: #5c6a86;
  --brand: #1D49A7;
  --brand-dark: #13387f;
  --line: #d8dfef;
  --max: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.marketing-page {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.mj-container { width: min(100% - 28px, var(--max)); margin-inline: auto; }

/* Header + mobile burger */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  text-decoration: none;
  color: var(--brand);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand span { font-size: 1.08rem; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--brand); }

/* General */
.section { padding: 42px 0; }
.section h2 { margin: 0 0 10px; color: var(--brand); font-size: clamp(1.5rem,2.6vw,2.1rem); }
.section-intro, .lead { color: var(--muted); line-height: 1.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }

/* Page-specific hero variants */
.hero {
  padding: 58px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.hero-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.hero-copy h1 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: clamp(2rem,4.6vw,3.6rem);
  line-height: 1.04;
}
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow: 0 10px 28px rgba(29,73,167,.2);
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 440px;
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,16,35,.22), rgba(8,16,35,0));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.feature h3 { margin: 0 0 8px; color: var(--brand); }
.feature p { margin: 0; color: var(--muted); }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}
.photo-strip img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
.screens-grid img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(29,73,167,.08);
  background: #fff;
}

.pricing {
  background: linear-gradient(120deg, #e7efff, #f6f9ff);
  border: 1px solid #cad8f8;
  border-radius: 16px;
  padding: 24px;
}
.price { font-size: clamp(1.7rem,3.2vw,2.2rem); margin: 0 0 8px; color: var(--brand); font-weight: 800; }
.bullets { margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bullets li { list-style: none; color: var(--muted); padding-left: 22px; position: relative; }
.bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

.auth-wrap { padding: 48px 0; }
.auth-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.footer {
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
  flex-wrap: wrap;
}
.footer a { color: var(--brand); text-decoration: none; }

/* mobile */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .topbar.open .nav-links { display: flex; }
  .brand img { width: 48px; height: 48px; }
  .hero-logo { width: 104px; height: 104px; }
  .photo-strip { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
