/* Shared module landing pages — match homepage marketplace look + contrast */
.mod-land {
  --ink: #0f172a;
  --muted: #475569;
  --navy: #0b1f3a;
  --green: #16a34a;
  --green-bright: #4ade80;
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.25rem;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.16);
  overflow: hidden;
}
body.module-landing {
  background:
    linear-gradient(180deg, rgba(8, 20, 40, 0.55), rgba(8, 20, 40, 0.72)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1800&q=75") center/cover fixed !important;
}
body.module-landing .hadafin-main-area {
  max-width: 1240px !important;
  padding-top: 0.85rem !important;
  padding-bottom: 2rem !important;
}
body.module-landing .header-shell {
  max-width: 1240px;
  margin: 0.65rem auto 0;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
  background: #fff;
}
body.module-landing .header-second-bar { background: #0b1f3a !important; }
body.module-landing .header-second-bar .nav-link,
body.module-landing .header-second-bar a { color: #e2e8f0 !important; }
body.module-landing .hadafin-footer { background: transparent !important; }
body.module-landing .hadafin-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.4rem !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.12);
}

.mod-land-hero {
  position: relative;
  min-height: 240px;
  color: #fff;
  overflow: hidden;
  /* Opaque dark fallback so theme remaps never show white behind hero text */
  background: #06101f;
  isolation: isolate;
}
.mod-land-hero-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
}
.mod-land-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 31, 0.78), rgba(11, 31, 58, 0.82)),
    radial-gradient(ellipse at 20% 0%, rgba(34, 197, 94, 0.22), transparent 45%);
}
.mod-land-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 2rem;
}
.mod-land-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.45rem;
}
.mod-land-hero h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.mod-land-hero h1 .accent { color: var(--green-bright); }
.mod-land-hero .tagline {
  margin-top: 0.65rem;
  color: rgba(241, 245, 249, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
}
.mod-land-cta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
}
/* High-contrast CTAs — never light text on light bg */
.mod-land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mod-land-btn:hover { transform: translateY(-1px); }
.mod-land-btn--primary {
  background: #16a34a;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}
.mod-land-btn--primary:hover { background: #15803d; }
.mod-land-btn--sky {
  background: #0284c7;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}
.mod-land-btn--sky:hover { background: #0369a1; }
.mod-land-btn--ghost {
  background: #fff;
  color: #0f172a !important;
  border-color: #cbd5e1;
}
.mod-land-btn--ghost:hover { background: #f8fafc; }

.mod-land-section {
  padding: 1.35rem 1.1rem 0.5rem;
}
@media (min-width: 640px) {
  .mod-land-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.mod-land-section h2 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.mod-land-section .sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 0.9rem;
}

.mod-land-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding: 1rem 1.1rem 0;
}
@media (min-width: 768px) {
  .mod-land-stats { grid-template-columns: repeat(4, 1fr); padding-left: 1.5rem; padding-right: 1.5rem; }
}
.mod-land-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.mod-land-stat .v {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--ink);
}
.mod-land-stat .l {
  margin-top: 0.2rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.mod-land-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mod-land-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.11);
}
.mod-land-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .mod-land-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mod-land-grid { grid-template-columns: repeat(3, 1fr); } }

.mod-land-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  /* Default high-contrast pill */
  background: #e2e8f0;
  color: #0f172a;
}
.mod-land-pill--rose { background: #ffe4e6; color: #9f1239; }
.mod-land-pill--sky { background: #e0f2fe; color: #075985; }
.mod-land-pill--violet { background: #ede9fe; color: #5b21b6; }
.mod-land-pill--amber { background: #fef3c7; color: #92400e; }
.mod-land-pill--emerald { background: #dcfce7; color: #166534; }
.mod-land-pill--indigo { background: #e0e7ff; color: #3730a3; }
.mod-land-pill--slate { background: #e2e8f0; color: #0f172a; }
.mod-land-pill--teal { background: #ccfbf1; color: #115e59; }
.mod-land-pill--cyan { background: #cffafe; color: #155e75; }
.mod-land-pill--fuchsia { background: #fae8ff; color: #86198f; }
.mod-land-pill--orange { background: #ffedd5; color: #9a3412; }

.mod-land-foot {
  margin: 1rem 1.1rem 1.4rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.1rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #fff);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .mod-land-foot { margin-left: 1.5rem; margin-right: 1.5rem; }
}
.mod-land-foot h2 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}
.mod-land-foot p {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.45;
}
.mod-land-foot code {
  background: #e2e8f0;
  color: #0f172a;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Hero theme immunity (Navy / Gold / any site theme)
   Fixed dark background + light text — never inherit theme remaps.
   Used by /crm/overview/ and /a2a/overview/
   ------------------------------------------------------------------ */
body[class*="theme-"] .mod-land-hero {
  background: #06101f !important;
  color: #f8fafc !important;
}
body[class*="theme-"] .mod-land-hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 16, 31, 0.88), rgba(11, 31, 58, 0.92)),
    radial-gradient(ellipse at 20% 0%, rgba(34, 197, 94, 0.22), transparent 45%) !important;
}
body[class*="theme-"] .mod-land-hero-inner {
  color: #f8fafc !important;
}
body[class*="theme-"] .mod-land-hero .mod-land-kicker {
  color: #4ade80 !important;
}
body[class*="theme-"] .mod-land-hero h1 {
  color: #ffffff !important;
}
body[class*="theme-"] .mod-land-hero h1 .accent {
  color: #4ade80 !important;
}
body[class*="theme-"] .mod-land-hero .tagline {
  color: rgba(241, 245, 249, 0.95) !important;
}
body[class*="theme-"] .mod-land-hero a:not(.mod-land-btn) {
  color: #4ade80 !important;
}
body[class*="theme-"] .mod-land-hero .mod-land-btn--primary,
body[class*="theme-"] .mod-land-hero .mod-land-btn--sky {
  color: #ffffff !important;
}
body[class*="theme-"] .mod-land-hero .mod-land-btn--ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
body[class*="theme-"] .mod-land-hero .mod-land-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}
